Skip to content

Commit fafd7bf

Browse files
authored
Merge pull request #2366 from TOMATO-ONE/new_loginscreen
Redesign the login screen
2 parents a5d8bfd + 4114774 commit fafd7bf

File tree

6 files changed

+30
-15
lines changed

6 files changed

+30
-15
lines changed

xrdp/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ dist_xrdppkgdata_DATA = \
9898
xrdp24b.bmp \
9999
xrdp256.bmp \
100100
xrdp_logo.bmp \
101+
xrdp_logo.png \
102+
README.logo \
101103
sans-10.fv1 \
102104
sans-18.fv1 \
103105
cursor0.cur \

xrdp/README.logo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
About xrdp_logo.png / xrdp_logo.bmp
2+
3+
These new xrdp logo files were created by processing vector image files by @metalefty.
4+
5+
The base images can be found at
6+
https://github.com/metalefty/xrdp-logo

xrdp/xrdp.ini.in

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,11 @@ use_fastpath=both
9595
;
9696
; colors used by windows in RGB format
9797
;
98-
blue=009cb5
99-
grey=dedede
10098
#black=000000
101-
#dark_grey=808080
102-
#blue=08246b
103-
#dark_blue=08246b
99+
grey=e1e1e1
100+
dark_grey=b4b4b4
101+
blue=0078d7
102+
dark_blue=0078d7
104103
#white=ffffff
105104
#red=ff0000
106105
#green=00ff00
@@ -125,7 +124,7 @@ grey=dedede
125124
#ls_title=My Login Title
126125

127126
; top level window background color in RGB format
128-
ls_top_window_bg_color=009cb5
127+
ls_top_window_bg_color=003057
129128

130129
; width and height of login screen
131130
;
@@ -139,10 +138,10 @@ ls_top_window_bg_color=009cb5
139138
; below
140139
;
141140
ls_width=350
142-
ls_height=430
141+
ls_height=360
143142

144143
; login screen background color in RGB format
145-
ls_bg_color=dedede
144+
ls_bg_color=f0f0f0
146145

147146
; optional background image filename. BMP format is always supported,
148147
; but other formats will be supported if xrdp is build with imlib2
@@ -163,10 +162,10 @@ ls_bg_color=dedede
163162
; logo height are ignored for a transform of 'none'.
164163
ls_logo_filename=
165164
ls_logo_transform=scale
166-
ls_logo_width=240
167-
ls_logo_height=140
165+
ls_logo_width=250
166+
ls_logo_height=110
168167
ls_logo_x_pos=55
169-
ls_logo_y_pos=50
168+
ls_logo_y_pos=35
170169

171170
; for positioning labels such as username, password etc
172171
ls_label_x_pos=30
@@ -177,17 +176,17 @@ ls_input_x_pos=110
177176
ls_input_width=210
178177

179178
; y pos for first label and combo box
180-
ls_input_y_pos=220
179+
ls_input_y_pos=158
181180

182181
; OK button
183182
ls_btn_ok_x_pos=142
184-
ls_btn_ok_y_pos=370
183+
ls_btn_ok_y_pos=308
185184
ls_btn_ok_width=85
186185
ls_btn_ok_height=30
187186

188187
; Cancel button
189188
ls_btn_cancel_x_pos=237
190-
ls_btn_cancel_y_pos=370
189+
ls_btn_cancel_y_pos=308
191190
ls_btn_cancel_width=85
192191
ls_btn_cancel_height=30
193192

xrdp/xrdp_login_wnd.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,13 @@ xrdp_login_wnd_create(struct xrdp_wm *self)
910910
/* if logo image not specified, use default */
911911
if (globals->ls_logo_filename[0] == 0)
912912
{
913-
g_snprintf(globals->ls_logo_filename, 255, "%s/xrdp_logo.bmp", XRDP_SHARE_PATH);
913+
#ifdef USE_IMLIB2
914+
g_snprintf(globals->ls_logo_filename, 255, "%s/xrdp_logo.png",
915+
XRDP_SHARE_PATH);
916+
#else
917+
g_snprintf(globals->ls_logo_filename, 255, "%s/xrdp_logo.bmp",
918+
XRDP_SHARE_PATH);
919+
#endif
914920
}
915921

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

930+
LOG(LOG_LEVEL_DEBUG, "ls_logo_filename: %s", globals->ls_logo_filename);
931+
924932
xrdp_bitmap_load(but, globals->ls_logo_filename, self->palette,
925933
globals->ls_bg_color,
926934
globals->ls_logo_transform,

xrdp/xrdp_logo.bmp

-44.2 KB
Binary file not shown.

xrdp/xrdp_logo.png

6.32 KB
Loading

0 commit comments

Comments
 (0)