Skip to content

Commit caa0540

Browse files
megaxlots0logs
authored andcommitted
GTK 3.20 :: Lightdm rewrite (#516)
* * [GTK 3.20] Lightdm rewirte. * * Fixed panel color.
1 parent b1c1fe6 commit caa0540

2 files changed

Lines changed: 17 additions & 95 deletions

File tree

gtk-3.20/scss/apps/_lightdm.scss

Lines changed: 15 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,40 @@
44

55
@include exports("lightdm") {
66
#panel_window {
7-
background-color: transparent;
7+
background-color: $lightdm_bg_color;
88
background-image: none;
99
color: $white;
1010
font: bold;
1111
text-shadow: 0 1px alpha($black, .5);
1212
-gtk-icon-shadow: 0 1px alpha($black, .5);
1313

1414
menubar {
15-
padding-left: 5px;
15+
padding-left: $spacing;
1616

1717
&, > menuitem {
1818
background-color: transparent;
1919
background-image: none;
20+
border-style: none;
2021
color: $white;
21-
font: bold;
2222
text-shadow: 0 1px alpha($black, .5);
2323
-gtk-icon-shadow: 0 1px alpha($black, .5);
2424

25-
*:hover { color: $white; }
26-
2725
&:hover {
28-
border-style: none;
2926
background-color: alpha($white, .2);
3027
background-image: none;
3128
color: $white;
3229
}
3330

34-
&:disabled { color: alpha($white, .7); }
35-
36-
menu {
37-
border-radius: 1px;
31+
*:hover { color: $white; }
3832

39-
menuitem {
40-
font: normal;
41-
text-shadow: none;
42-
}
43-
}
33+
&:disabled { color: alpha($white, .7); }
4434
}
35+
36+
menu > menuitem { font: normal; }
4537
}
4638
}
4739

48-
#content_frame { padding-bottom: 14px; }
40+
#content_frame { padding-bottom: $spacing * 3; }
4941

5042
#login_window, #shutdown_dialog, #restart_dialog {
5143
border-style: none;
@@ -59,66 +51,15 @@
5951
inset 0 1px mix(shade($lightdm_bg_color, .7), $lightdm_fg_color, .21),
6052
inset 0 -1px mix(shade($lightdm_bg_color, .7), $lightdm_fg_color, .21);
6153

62-
button {
63-
padding: 3px 15px;
64-
border-width: 1px;
65-
border-radius: $roundness;
66-
border-style: solid;
67-
border-color: shade($lightdm_bg_color, .8);
68-
background-color: shade($lightdm_bg_color, 1.08);
69-
background-image: none;
70-
color: $lightdm_fg_color;
71-
transition: all 150ms ease-out;
72-
73-
&.default, &:focus, &:active:focus {
74-
border-color: shade($selected_bg_color, .8);
75-
background-color: shade($selected_bg_color, 1.08);
76-
background-image: none;
77-
color: $selected_fg_color;
78-
79-
&:hover {
80-
border-color: shade($selected_bg_color, .7);
81-
background-color: $selected_bg_color;
82-
}
83-
}
84-
}
54+
@extend %panelbutton;
8555
}
8656

87-
8857
#login_window {
89-
menu { border-radius: 1px; }
58+
menu { border-radius: 0; }
9059

91-
combobox button {
92-
&, &:hover, &:active, &:active:hover,
93-
&:focus, &:hover:focus, &:active:focus, &:active:hover:focus {
94-
padding: 0;
95-
background: none;
96-
border-style: none;
97-
box-shadow: none;
98-
}
99-
}
60+
button { @include button($lightdm_bg_color, $lightdm_fg_color); }
10061

101-
entry {
102-
padding: 3px 5px;
103-
border-width: 1px;
104-
border-style: solid;
105-
border-color: shade($lightdm_bg_color, .8);
106-
border-radius: $roundness;
107-
background-color: shade($lightdm_bg_color, .9);
108-
background-image: none;
109-
color: $lightdm_fg_color;
110-
box-shadow: none;
111-
transition: all 150ms ease-out;
112-
113-
&:focus, &:hover {
114-
border-color: shade($lightdm_bg_color, .7);
115-
116-
box-shadow: inset 1px 0 alpha($dark_shadow, .1),
117-
inset 0 1px alpha($dark_shadow, .12),
118-
inset -1px 0 alpha($dark_shadow, .1),
119-
inset 0 -1px alpha($dark_shadow, .05);
120-
}
121-
}
62+
entry { @include entry($lightdm_bg_color, $lightdm_fg_color); }
12263
}
12364

12465
#user_combobox {
@@ -131,7 +72,6 @@
13172
}
13273

13374
#user_image {
134-
padding: 3px;
13575
border-radius: $roundness;
13676

13777
/* draw border using box-shadow */
@@ -152,7 +92,7 @@
15292
}
15393

15494
#buttonbox_frame {
155-
padding-top: 10px;
95+
padding-top: $spacing * 2;
15696
padding-bottom: 0;
15797
border-style: none;
15898
border-bottom-left-radius: $roundness;
@@ -162,32 +102,14 @@
162102
box-shadow: none;
163103
}
164104

165-
166-
167105
/* shutdown button */
168106
#shutdown_button {
169-
border-color: shade($error_bg_color, .8);
170-
background-color: shade($error_bg_color, 1.08);
171-
background-image: none;
172-
color: $error_fg_color;
173-
174-
&:hover, &:active, &:active:hover {
175-
border-color: shade($error_bg_color, .7);
176-
background-color: $error_bg_color;
177-
}
107+
button { @include button($error_bg_color, $error_fg_color); }
178108
}
179109

180110
/* restart button */
181111
#restart_button {
182-
border-color: shade($warning_bg_color, .8);
183-
background-color: shade($warning_bg_color, 1.08);
184-
background-image: none;
185-
color: $warning_fg_color;
186-
187-
&:hover, &:active, &:active:hover {
188-
border-color: shade($warning_bg_color, .7);
189-
background-color: $warning_bg_color;
190-
}
112+
button { @include button($warning_bg_color, $warning_fg_color); }
191113
}
192114

193115
/* password warning */

gtk-3.20/scss/apps/_panel.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
background-image: none;
1818
color: $panel_fg_color;
1919

20-
&:hover, &:hover {
20+
&:hover {
2121
@include linear-gradient(mix($panel_bg_color, $panel_fg_color, .11));
2222

2323
border-color: mix($panel_bg_color, $panel_fg_color, .11);
@@ -47,7 +47,7 @@
4747
PanelApplet {
4848
border: 0;
4949

50-
.button {
50+
button {
5151
@extend %panelbutton;
5252
}
5353
}

0 commit comments

Comments
 (0)