2020
2121namespace jorts.Themer {
2222
23- /* Get a name, spit an array with colours from standard granite stylesheet */
24- /* EX: STRAWBERRY --> { "@STRAWBERRY_100" "@STRAWBERRY_900" }*/
25- public string [] generate_palette (string theme ) {
26- var string_palette = new string [2 ];
27- string_palette = {
28- " @" + theme + " _100" ,
29- " @" + theme + " _900"
30- };
31- return string_palette;
32- }
33-
3423 /* Get a name, spit a whole CSS */
3524 /* We kinda need better tbh but it is better than before */
3625 public static string generate_css (int uid , string theme ) {
37- var palette = generate_palette(theme);
26+ /* var palette = generate_palette(theme); */
3827
3928 string style = " " ;
4029
4130 style = (N_ (" " "
4231 @define-color textColorPrimary #323232;
4332
4433 .mainwindow-%d {
45- background-color: %s ;
34+ background-color: @ %s_100 ;
4635 transition: background-color 800ms cubic-bezier(0.4, 0, 0.2, 1);
4736 }
4837
4938 .mainwindow-%d undershoot.top {
5039 background:
5140 linear-gradient(
52- %s 0%,
53- alpha(%s , 0) 50%
41+ @ %s_100 0%,
42+ alpha(@ %s_100 , 0) 50%
5443 );
5544 transition: background 800ms cubic-bezier(0.4, 0, 0.2, 1);
5645 }
5746
5847 .mainwindow-%d undershoot.bottom {
5948 background:
6049 linear-gradient(
61- alpha(%s , 0) 50%,
62- %s 100%
50+ alpha(@ %s_100 , 0) 50%,
51+ @ %s_100 100%
6352 );
6453 transition: background 800ms cubic-bezier(0.4, 0, 0.2, 1);
6554 }
6655
6756
6857
6958 .mainwindow-%d .jorts-view text selection {
70- color: shade(%s , 1.88);
59+ color: shade(@ %s_100 , 1.88);
7160 transition: color 800ms cubic-bezier(0.4, 0, 0.2, 1);
72- background-color: %s ;
61+ background-color: @ %s_900 ;
7362 transition: background-color 800ms cubic-bezier(0.4, 0, 0.2, 1);
7463 }
7564
@@ -79,24 +68,24 @@ namespace jorts.Themer {
7968
8069 .window-%d .jorts-title image,
8170 .window-%d .jorts-label {
82- color: %s ;
71+ color: @ %s_900 ;
8372 box-shadow: none;
8473 transition: color 800ms cubic-bezier(0.4, 0, 0.2, 1);
8574 }
8675
8776 .window-%d .jorts-bar {
88- color: %s ;
89- background-color: %s ;
90- border-top-color: %s ;
77+ color: @ %s_900 ;
78+ background-color: @ %s_100 ;
79+ border-top-color: @ %s_100 ;
9180 box-shadow: none;
9281 background-image: none;
9382 padding: 3px;
9483 transition: background-color 800ms cubic-bezier(0.4, 0, 0.2, 1);
95- transition: color 800ms cubic-bezier(0.4, 0, 0.2, 1);
84+ /* transition: color 800ms cubic-bezier(0.4, 0, 0.2, 1);*/
9685 }
9786
9887 .window-%d .jorts-bar image {
99- color: %s ;
88+ color: @ %s_900 ;
10089 padding: 3px;
10190 box-shadow: none;
10291 background-image: none;
@@ -105,15 +94,15 @@ namespace jorts.Themer {
10594 .window-%d .jorts-view,
10695 .window-%d .jorts-view text,
10796 .window-%d .jorts-title {
108- background-color: %s ;
97+ background-color: @ %s_100 ;
10998 background-image: none;
110- border-bottom-color: %s ;
99+ border-bottom-color: @ %s_100 ;
111100 font-weight: 500;
112101 font-size: 1.2em;
113- color: shade(%s , 0.77);
102+ color: shade(@ %s_900 , 0.77);
114103 box-shadow: none;
115104 transition: background-color 800ms cubic-bezier(0.4, 0, 0.2, 1);
116- transition: color 800ms cubic-bezier(0.4, 0, 0.2, 1);
105+ /* transition: color 800ms cubic-bezier(0.4, 0, 0.2, 1);*/
117106 }
118107
119108
@@ -196,31 +185,27 @@ namespace jorts.Themer {
196185 font-weight: 700;
197186 font-size: 0.88em;
198187 }
199- /*.jorts-label:backdrop {
200- color: mix (@textColorPrimary, %s , 0.3);
201- }*/
202-
203- .window-%d overshoot.top {
204- background: linear-gradient(to top, alpha(%s , 0) 80%, alpha(%s , 0.25) 100%);
205- transition: background 800ms cubic-bezier(0.4, 0, 0.2, 1);}
206-
207- .window-%d overshoot.bottom {
208- background: linear-gradient(to bottom, alpha(%s , 0) 80%, alpha(%s , 0.25) 100%);
209- transition: background 800ms cubic-bezier(0.4, 0, 0.2, 1);}
210-
211- " " " )). printf(uid, palette[0 ],
212- uid, palette[0 ], palette[0 ],
213- uid, palette[0 ], palette[0 ],
214- uid, palette[0 ], palette[1 ],
188+
189+
190+ .trashcan:hover {
191+ transition: background-color 800ms cubic-bezier(0.4, 0, 0.2, 1);
192+ color: @warning;
193+ }
194+
195+
196+
197+
198+ " " " )). printf(uid, theme,
199+ uid, theme, theme,
200+ uid, theme, theme,
201+ uid, theme, theme,
215202 uid, uid,
216- palette[ 1 ] ,
217- uid, palette[ 1 ], palette[ 0 ], palette[ 0 ] ,
218- uid, palette[ 1 ] ,
203+ theme ,
204+ uid, theme, theme, theme ,
205+ uid, theme ,
219206 uid, uid, uid,
220- palette[0 ], palette[0 ], palette[1 ],
221- palette[1 ],
222- uid,palette[0 ],palette[0 ],
223- uid,palette[0 ],palette[0 ]);
207+ theme, theme, theme,
208+ theme);
224209
225210 return style;
226211}
0 commit comments