@@ -194,7 +194,7 @@ body[data-theme="dark"]
194
194
color $ui-dark-text-color
195
195
.item-bottom-tagList-item
196
196
transition 0.15s
197
- background-color alpha (# f f f , 20% )
197
+ background-color alpha ($ui-dark-tagList-backgroundColor , 20% )
198
198
color $ui-dark-text-color
199
199
& :active
200
200
transition 0.15s
@@ -207,7 +207,7 @@ body[data-theme="dark"]
207
207
color $ui-dark-text-color
208
208
.item-bottom-tagList-item
209
209
transition 0.15s
210
- background-color alpha (white , 10% )
210
+ background-color alpha ($ui-dark-tagList-backgroundColor , 10% )
211
211
color $ui-dark-text-color
212
212
213
213
.item-wrapper
@@ -223,13 +223,13 @@ body[data-theme="dark"]
223
223
.item-bottom-time
224
224
color $ui-dark-text-color
225
225
.item-bottom-tagList-item
226
- background-color alpha (white , 10% )
226
+ background-color alpha ($ui-dark-tagList-backgroundColor , 10% )
227
227
color $ui-dark-text-color
228
228
& :hover
229
229
background-color alpha ($ui-dark-button--active-backgroundColor , 60% )
230
- color # c0 39 2b
230
+ color $ui-dark-button--hover-color
231
231
.item-bottom-tagList-item
232
- background-color alpha (# f f f , 20% )
232
+ background-color alpha ($ui-dark-tagList-backgroundColor , 20% )
233
233
234
234
.item-title
235
235
color $ui-inactive-text-color
@@ -322,148 +322,82 @@ body[data-theme="solarized-dark"]
322
322
color $ui-inactive-text-color
323
323
vertical-align middle
324
324
325
- body [data-theme = "monokai" ]
326
- .root
327
- border-color $ui-monokai-borderColor
328
- background-color $ui-monokai-noteList-backgroundColor
325
+ apply-theme (theme )
326
+ body [data-theme = { theme } ]
327
+ .root
328
+ border-color get-theme-var (theme , 'borderColor' )
329
+ background-color get-theme-var (theme , 'noteList-backgroundColor' )
329
330
330
- .item
331
- border-color $ui-monokai-borderColor
332
- background-color $ui-monokai-noteList-backgroundColor
333
- & :hover
334
- transition 0.15s
335
- // background-color alpha($ui-monokai-noteList-backgroundColor, 20%)
336
- color $ui-monokai-text-color
337
- .item-title
338
- .item-title-icon
339
- .item-bottom-time
331
+ .item
332
+ border-color get-theme-var (theme , 'borderColor' )
333
+ background-color get-theme-var (theme , 'noteList-backgroundColor' )
334
+ & :hover
340
335
transition 0.15s
341
- color $ui-monokai-text-color
342
- .item-bottom-tagList-item
336
+ // background-color alpha(get-theme-var(theme, 'noteList-backgroundColor'), 20%)
337
+ color get-theme-var (theme , 'text-color' )
338
+ .item-title
339
+ .item-title-icon
340
+ .item-bottom-time
341
+ transition 0.15s
342
+ color get-theme-var (theme , 'text-color' )
343
+ .item-bottom-tagList-item
344
+ transition 0.15s
345
+ background-color alpha (get-theme-var (theme , 'noteList-backgroundColor' ), 20% )
346
+ color get-theme-var (theme , 'text-color' )
347
+ & :active
343
348
transition 0.15s
344
- background-color alpha ($ui-monokai-noteList-backgroundColor , 20% )
345
- color $ui-monokai-text-color
346
- & :active
347
- transition 0.15s
348
- background-color $ui-monokai-noteList-backgroundColor
349
- color $ui-monokai-text-color
350
- .item-title
351
- .item-title-icon
352
- .item-bottom-time
353
- transition 0.15s
354
- color $ui-monokai-text-color
355
- .item-bottom-tagList-item
356
- transition 0.15s
357
- background-color alpha ($ui-monokai-noteList-backgroundColor , 10% )
358
- color $ui-monokai-text-color
359
-
360
- .item-wrapper
361
- border-color alpha ($ui-monokai-button-backgroundColor , 60% )
349
+ background-color get-theme-var (theme , 'noteList-backgroundColor' )
350
+ color get-theme-var (theme , 'text-color' )
351
+ .item-title
352
+ .item-title-icon
353
+ .item-bottom-time
354
+ transition 0.15s
355
+ color get-theme-var (theme , 'text-color' )
356
+ .item-bottom-tagList-item
357
+ transition 0.15s
358
+ background-color alpha (get-theme-var (theme , 'noteList-backgroundColor' ), 10% )
359
+ color get-theme-var (theme , 'text-color' )
362
360
363
- .item--active
364
- border-color $ui-monokai-borderColor
365
- background-color $ui-monokai-button-backgroundColor
366
361
.item-wrapper
367
- border-color transparent
368
- .item-title
369
- .item-title-icon
370
- .item-bottom-time
371
- color $ui-monokai-active-color
372
- .item-bottom-tagList-item
373
- background-color alpha (white , 10% )
374
- color $ui-monokai-text-color
375
- & :hover
376
- // background-color alpha($ui-monokai-button--active-backgroundColor, 60%)
377
- color #f9 26 72
378
- .item-bottom-tagList-item
379
- background-color alpha (#f f f , 20% )
380
-
381
- .item-title
382
- color $ui-inactive-text-color
383
-
384
- .item-title-icon
385
- color $ui-inactive-text-color
386
-
387
- .item-title-empty
388
- color $ui-inactive-text-color
389
-
390
- .item-bottom-tagList-item
391
- background-color alpha ($ui-dark-button--active-backgroundColor , 40% )
392
- color $ui-inactive-text-color
393
-
394
- .item-bottom-tagList-empty
395
- color $ui-inactive-text-color
396
- vertical-align middle
362
+ border-color alpha (get-theme-var (theme , 'button-backgroundColor' ), 60% )
397
363
398
- body [data-theme = "dracula" ]
399
- .root
400
- border-color $ui-dracula-borderColor
401
- background-color $ui-dracula-noteList-backgroundColor
402
-
403
- .item
404
- border-color $ui-dracula-borderColor
405
- background-color $ui-dracula-noteList-backgroundColor
406
- & :hover
407
- transition 0.15s
408
- // background-color alpha($ui-dracula-noteList-backgroundColor, 20%)
409
- color $ui-dracula-text-color
364
+ .item--active
365
+ border-color get-theme-var (theme , 'borderColor' )
366
+ background-color get-theme-var (theme , 'button-backgroundColor' )
367
+ .item-wrapper
368
+ border-color transparent
410
369
.item-title
411
370
.item-title-icon
412
371
.item-bottom-time
413
- transition 0.15s
414
- color $ui-dracula-text-color
372
+ color get-theme-var (theme , 'active-color' )
415
373
.item-bottom-tagList-item
416
- transition 0.15s
417
- background-color alpha ($ui-dracula-noteList-backgroundColor , 20% )
418
- color $ui-dracula-text-color
419
- & :active
420
- transition 0.15s
421
- background-color $ui-dracula-noteList-backgroundColor
422
- color $ui-dracula-text-color
423
- .item-title
424
- .item-title-icon
425
- .item-bottom-time
426
- transition 0.15s
427
- color $ui-dracula-text-color
428
- .item-bottom-tagList-item
429
- transition 0.15s
430
- background-color alpha ($ui-dracula-noteList-backgroundColor , 10% )
431
- color $ui-dracula-text-color
374
+ background-color alpha (get-theme-var (theme , 'tagList-backgroundColor' ), 10% )
375
+ color get-theme-var (theme , 'text-color' )
376
+ & :hover
377
+ // background-color alpha(get-theme-var(theme, 'button--active-backgroundColor'), 60%)
378
+ color get-theme-var (theme , 'button--hover-color' )
379
+ .item-bottom-tagList-item
380
+ background-color alpha (get-theme-var (theme , 'tagList-backgroundColor' ), 20% )
432
381
433
- .item-wrapper
434
- border-color alpha ($ui-dracula-button-backgroundColor , 60% )
435
-
436
- .item--active
437
- border-color $ui-dracula-borderColor
438
- background-color $ui-dracula-button-backgroundColor
439
- .item-wrapper
440
- border-color transparent
441
382
.item-title
383
+ color $ui-inactive-text-color
384
+
442
385
.item-title-icon
443
- .item-bottom-time
444
- color $ui-dracula-active-color
445
- .item-bottom-tagList-item
446
- background-color alpha (#f8 f8 f2 , 10% )
447
- color $ui-dracula-text-color
448
- & :hover
449
- // background-color alpha($ui-dracula-button--active-backgroundColor, 60%)
450
- color #ff 79 c6
451
- .item-bottom-tagList-item
452
- background-color alpha (#f8 f8 f2 , 20% )
386
+ color $ui-inactive-text-color
453
387
454
- .item-title
455
- color $ui-inactive-text-color
388
+ .item-title-empty
389
+ color $ui-inactive-text-color
456
390
457
- .item-title-icon
458
- color $ui-inactive-text-color
391
+ .item-bottom-tagList-item
392
+ background-color alpha ($ui-dark-button--active-backgroundColor , 40% )
393
+ color $ui-inactive-text-color
459
394
460
- .item-title-empty
461
- color $ui-inactive-text-color
395
+ .item-bottom-tagList-empty
396
+ color $ui-inactive-text-color
397
+ vertical-align middle
462
398
463
- .item-bottom-tagList-item
464
- background-color alpha ($ui-dark-button--active-backgroundColor , 40% )
465
- color $ui-inactive-text-color
399
+ for theme in 'dracula'
400
+ apply-theme (theme )
466
401
467
- .item-bottom-tagList-empty
468
- color $ui-inactive-text-color
469
- vertical-align middle
402
+ for theme in $themes
403
+ apply-theme (theme )
0 commit comments