Skip to content

Commit

Permalink
Merge pull request #2366 from TOMATO-ONE/new_loginscreen
Browse files Browse the repository at this point in the history
Redesign the login screen
  • Loading branch information
metalefty authored Sep 22, 2022
2 parents a5d8bfd + 4114774 commit fafd7bf
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 15 deletions.
2 changes: 2 additions & 0 deletions xrdp/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ dist_xrdppkgdata_DATA = \
xrdp24b.bmp \
xrdp256.bmp \
xrdp_logo.bmp \
xrdp_logo.png \
README.logo \
sans-10.fv1 \
sans-18.fv1 \
cursor0.cur \
Expand Down
6 changes: 6 additions & 0 deletions xrdp/README.logo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
About xrdp_logo.png / xrdp_logo.bmp

These new xrdp logo files were created by processing vector image files by @metalefty.

The base images can be found at
https://github.com/metalefty/xrdp-logo
27 changes: 13 additions & 14 deletions xrdp/xrdp.ini.in
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,11 @@ use_fastpath=both
;
; colors used by windows in RGB format
;
blue=009cb5
grey=dedede
#black=000000
#dark_grey=808080
#blue=08246b
#dark_blue=08246b
grey=e1e1e1
dark_grey=b4b4b4
blue=0078d7
dark_blue=0078d7
#white=ffffff
#red=ff0000
#green=00ff00
Expand All @@ -125,7 +124,7 @@ grey=dedede
#ls_title=My Login Title

; top level window background color in RGB format
ls_top_window_bg_color=009cb5
ls_top_window_bg_color=003057

; width and height of login screen
;
Expand All @@ -139,10 +138,10 @@ ls_top_window_bg_color=009cb5
; below
;
ls_width=350
ls_height=430
ls_height=360

; login screen background color in RGB format
ls_bg_color=dedede
ls_bg_color=f0f0f0

; optional background image filename. BMP format is always supported,
; but other formats will be supported if xrdp is build with imlib2
Expand All @@ -163,10 +162,10 @@ ls_bg_color=dedede
; logo height are ignored for a transform of 'none'.
ls_logo_filename=
ls_logo_transform=scale
ls_logo_width=240
ls_logo_height=140
ls_logo_width=250
ls_logo_height=110
ls_logo_x_pos=55
ls_logo_y_pos=50
ls_logo_y_pos=35

; for positioning labels such as username, password etc
ls_label_x_pos=30
Expand All @@ -177,17 +176,17 @@ ls_input_x_pos=110
ls_input_width=210

; y pos for first label and combo box
ls_input_y_pos=220
ls_input_y_pos=158

; OK button
ls_btn_ok_x_pos=142
ls_btn_ok_y_pos=370
ls_btn_ok_y_pos=308
ls_btn_ok_width=85
ls_btn_ok_height=30

; Cancel button
ls_btn_cancel_x_pos=237
ls_btn_cancel_y_pos=370
ls_btn_cancel_y_pos=308
ls_btn_cancel_width=85
ls_btn_cancel_height=30

Expand Down
10 changes: 9 additions & 1 deletion xrdp/xrdp_login_wnd.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,13 @@ xrdp_login_wnd_create(struct xrdp_wm *self)
/* if logo image not specified, use default */
if (globals->ls_logo_filename[0] == 0)
{
g_snprintf(globals->ls_logo_filename, 255, "%s/xrdp_logo.bmp", XRDP_SHARE_PATH);
#ifdef USE_IMLIB2
g_snprintf(globals->ls_logo_filename, 255, "%s/xrdp_logo.png",
XRDP_SHARE_PATH);
#else
g_snprintf(globals->ls_logo_filename, 255, "%s/xrdp_logo.bmp",
XRDP_SHARE_PATH);
#endif
}

/* logo image */
Expand All @@ -921,6 +927,8 @@ xrdp_login_wnd_create(struct xrdp_wm *self)
g_snprintf(globals->ls_logo_filename, 255, "%s/ad256.bmp", XRDP_SHARE_PATH);
}

LOG(LOG_LEVEL_DEBUG, "ls_logo_filename: %s", globals->ls_logo_filename);

xrdp_bitmap_load(but, globals->ls_logo_filename, self->palette,
globals->ls_bg_color,
globals->ls_logo_transform,
Expand Down
Binary file modified xrdp/xrdp_logo.bmp
Binary file not shown.
Binary file added xrdp/xrdp_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fafd7bf

Please sign in to comment.