Skip to main content

Login Panel

Customizable login page layouts with support for different visual styles.

Overview

XReports provides four login panel modes to match your organization's branding and visual requirements. Each mode offers different levels of customization.

Login Modes

ModeNameDescription
1FullStandard white card, vertically centered with header
2SimpleStandard white card, positioned at top
3CustomConfigurable colors and background image
4GlassmorphismTransparent panel with backdrop blur effect

Configuration

Login panel settings are configured in tsdc.xml:

<IndexLayoutMode>1</IndexLayoutMode>
<!--1 - full, 2 - simple, 3 - custom, 4 - glassmorphism-->

Mode 1: Full Layout

Standard white login card centered vertically on the page with the application header visible.

Best for: Default installations, standard corporate environments

Sample Configuration

<IndexLayoutMode>1</IndexLayoutMode>

No additional configuration required. Uses default styling.


Mode 2: Simple Layout

Standard white login card positioned at the top of the page without vertical centering.

Best for: Compact displays, kiosk applications

Sample Configuration

<IndexLayoutMode>2</IndexLayoutMode>

No additional configuration required. Uses default styling.


Mode 3: Custom Layout

White card with configurable background image, colors, and positioning.

Best for: Branded login pages with company background images

Sample Configuration

<IndexLayoutMode>3</IndexLayoutMode>
<IndexLayoutCustom>
<BackgroundImage>bg.png</BackgroundImage>
<BackgroundSizeMode>cover</BackgroundSizeMode>
<LoginPanelPosition>0</LoginPanelPosition>
<LoginPanelTitle>Login</LoginPanelTitle>
<LoginPanelWidth>384</LoginPanelWidth>
<LoginPanelMarginTop>0</LoginPanelMarginTop>
<InputTextColor>#1f2937</InputTextColor>
<LoginPanelBackgroundColor>#ffffff</LoginPanelBackgroundColor>
<LoginButtonBackgroundColor>#5C6BC0</LoginButtonBackgroundColor>
<LoginButtonTextColor>#ffffff</LoginButtonTextColor>
</IndexLayoutCustom>

Mode 3 Properties

PropertyTypeDefaultDescription
BackgroundImagestringbg.pngBackground image filename
BackgroundSizeModestringcoverCSS background-size (cover/contain)
LoginPanelPositionint00 = center, 1 = top
LoginPanelTitlestringLoginPanel title text
LoginPanelWidthint384Panel width in pixels
LoginPanelMarginTopint0Top margin in pixels
InputTextColorstring#1f2937Text color for labels and inputs
LoginPanelBackgroundColorstring#ffffffPanel background color
LoginButtonBackgroundColorstring#5C6BC0Button background color
LoginButtonTextColorstring#ffffffButton text color

Mode 4: Glassmorphism Layout

Advanced transparent panel with backdrop blur effect, underline-style inputs, and ghost button.

Best for: Modern UI, industrial displays, digital signage

Sample Configuration

<IndexLayoutMode>4</IndexLayoutMode>
<IndexLayoutCustom>
<BackgroundImage>bg-industrial.svg</BackgroundImage>
<BackgroundSizeMode>cover</BackgroundSizeMode>
<LoginPanelPosition>0</LoginPanelPosition>
<LoginPanelTitle>Login</LoginPanelTitle>
<LoginPanelWidth>384</LoginPanelWidth>
<LoginPanelMarginTop>0</LoginPanelMarginTop>
<InputTextColor>#ffffff</InputTextColor>
<LoginPanelBackgroundColor>rgba(0,0,0,0.3)</LoginPanelBackgroundColor>
<LoginButtonBackgroundColor>#5C6BC0</LoginButtonBackgroundColor>
<LoginButtonTextColor>#ffffff</LoginButtonTextColor>
<!-- Mode 4 specific properties -->
<LoginPanelBlurAmount>10</LoginPanelBlurAmount>
<LoginPanelBorderColor>rgba(255,255,255,0.2)</LoginPanelBorderColor>
<LoginInputBorderColor>rgba(255,255,255,0.5)</LoginInputBorderColor>
</IndexLayoutCustom>

Mode 4 Additional Properties

PropertyTypeDefaultDescription
LoginPanelBlurAmountint10Backdrop blur intensity in pixels
LoginPanelBorderColorstringrgba(255,255,255,0.2)Panel border color
LoginInputBorderColorstringrgba(255,255,255,0.5)Input underline color

Glassmorphism Tips

  • Use rgba() colors for transparency effects
  • Higher blur amounts (15-20) work well with busy backgrounds
  • Use light text colors (#ffffff) on dark transparent backgrounds
  • SVG backgrounds scale well on all screen sizes

Background Images

Background images should be placed in:

TSWebAssets/images/tsdc/bg/

Available Backgrounds

FilenameDescription
bg.pngDefault city/energy themed background
bg-green.pngGreen themed background
bg-black.pngSolid black (for testing transparency)
bg-industrial.svgIndustrial/solar panel SVG pattern

Custom Backgrounds

You can add your own background images:

  1. Place the image file in TSWebAssets/images/tsdc/bg/
  2. Update <BackgroundImage> in tsdc.xml with the filename

Supported formats: PNG, JPG, SVG