forge
Explore
Log in

Don't you dare go Hollow

Re-add STROKE_FOCUS palette token for the focus-ring task

Browse files at this commit

59c625d9eabc5b493ef8374bd5a323f8027625daAhmet Kaan GümüşParent: 9e3e5bc
  • style
    • re-add STROKE_FOCUS palette token for the focus-ring task
Show full message
🎨 style(ui): re-add STROKE_FOCUS palette token for the focus-ring task

Reverses 070a260's deletion: the C2 focus-ring feature lands on top of
this in the same worktree next. Values verbatim from that commit's
history; no #[expect(dead_code)] needed since the const is consumed
via the palette!-macro struct-field construction, not a bare unused
item.
crates/app/src/ui/theme.rsmodified+14 -0
@@ -105,6 +105,7 @@ palette! {
105 SCRIM: u32,105 SCRIM: u32,
106 SCRIM_LIGHT: u32,106 SCRIM_LIGHT: u32,
107 STROKE_DIVIDER: u32,107 STROKE_DIVIDER: u32,
108+ STROKE_FOCUS: u32,
108 STROKE_SELECTED: u32,109 STROKE_SELECTED: u32,
109 FG_PRIMARY: u32,110 FG_PRIMARY: u32,
110 FG_SECONDARY: u32,111 FG_SECONDARY: u32,
@@ -348,6 +349,7 @@ pub mod cool {
348 349
349 // -- strokes ----------------------------------------------------------------350 // -- strokes ----------------------------------------------------------------
350 pub const STROKE_DIVIDER: u32 = 0x2a3442;351 pub const STROKE_DIVIDER: u32 = 0x2a3442;
352+ pub const STROKE_FOCUS: u32 = 0xffd166;
351 pub const STROKE_SELECTED: u32 = 0x22d3ee;353 pub const STROKE_SELECTED: u32 = 0x22d3ee;
352 354
353 // -- text -------------------------------------------------------------------355 // -- text -------------------------------------------------------------------
@@ -439,6 +441,7 @@ pub mod warm {
439 441
440 // -- strokes ----------------------------------------------------------------442 // -- strokes ----------------------------------------------------------------
441 pub const STROKE_DIVIDER: u32 = 0x3a322e;443 pub const STROKE_DIVIDER: u32 = 0x3a322e;
444+ pub const STROKE_FOCUS: u32 = 0xffc38a;
442 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;445 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
443 446
444 // -- text -------------------------------------------------------------------447 // -- text -------------------------------------------------------------------
@@ -523,6 +526,7 @@ pub mod forest {
523 526
524 // -- strokes ----------------------------------------------------------------527 // -- strokes ----------------------------------------------------------------
525 pub const STROKE_DIVIDER: u32 = 0x25362c;528 pub const STROKE_DIVIDER: u32 = 0x25362c;
529+ pub const STROKE_FOCUS: u32 = 0xffd166;
526 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;530 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
527 531
528 // -- text -------------------------------------------------------------------532 // -- text -------------------------------------------------------------------
@@ -606,6 +610,7 @@ pub mod violet {
606 610
607 // -- strokes ----------------------------------------------------------------611 // -- strokes ----------------------------------------------------------------
608 pub const STROKE_DIVIDER: u32 = 0x2e3150;612 pub const STROKE_DIVIDER: u32 = 0x2e3150;
613+ pub const STROKE_FOCUS: u32 = 0xfde68a;
609 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;614 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
610 615
611 // -- text -------------------------------------------------------------------616 // -- text -------------------------------------------------------------------
@@ -684,6 +689,7 @@ pub mod rose {
684 689
685 // -- strokes ----------------------------------------------------------------690 // -- strokes ----------------------------------------------------------------
686 pub const STROKE_DIVIDER: u32 = 0x332f33;691 pub const STROKE_DIVIDER: u32 = 0x332f33;
692+ pub const STROKE_FOCUS: u32 = 0xfcd34d;
687 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;693 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
688 694
689 // -- text -------------------------------------------------------------------695 // -- text -------------------------------------------------------------------
@@ -764,6 +770,7 @@ pub mod amber {
764 770
765 // -- strokes ----------------------------------------------------------------771 // -- strokes ----------------------------------------------------------------
766 pub const STROKE_DIVIDER: u32 = 0x35352f;772 pub const STROKE_DIVIDER: u32 = 0x35352f;
773+ pub const STROKE_FOCUS: u32 = 0x7dd3fc;
767 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;774 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
768 775
769 // -- text -------------------------------------------------------------------776 // -- text -------------------------------------------------------------------
@@ -842,6 +849,7 @@ pub mod ocean {
842 849
843 // -- strokes ----------------------------------------------------------------850 // -- strokes ----------------------------------------------------------------
844 pub const STROKE_DIVIDER: u32 = 0x1e2d42;851 pub const STROKE_DIVIDER: u32 = 0x1e2d42;
852+ pub const STROKE_FOCUS: u32 = 0xffd166;
845 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;853 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
846 854
847 // -- text -------------------------------------------------------------------855 // -- text -------------------------------------------------------------------
@@ -921,6 +929,7 @@ pub mod ice {
921 929
922 // -- strokes ----------------------------------------------------------------930 // -- strokes ----------------------------------------------------------------
923 pub const STROKE_DIVIDER: u32 = 0x223140;931 pub const STROKE_DIVIDER: u32 = 0x223140;
932+ pub const STROKE_FOCUS: u32 = 0xfcd34d;
924 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;933 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
925 934
926 // -- text -------------------------------------------------------------------935 // -- text -------------------------------------------------------------------
@@ -998,6 +1007,7 @@ pub mod orchid {
998 1007
999 // -- strokes ----------------------------------------------------------------1008 // -- strokes ----------------------------------------------------------------
1000 pub const STROKE_DIVIDER: u32 = 0x33203f;1009 pub const STROKE_DIVIDER: u32 = 0x33203f;
1010+ pub const STROKE_FOCUS: u32 = 0x7dd3fc;
1001 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;1011 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
1002 1012
1003 // -- text -------------------------------------------------------------------1013 // -- text -------------------------------------------------------------------
@@ -1084,6 +1094,7 @@ pub mod nord {
1084 1094
1085 // -- strokes ----------------------------------------------------------------1095 // -- strokes ----------------------------------------------------------------
1086 pub const STROKE_DIVIDER: u32 = 0x434c5e;1096 pub const STROKE_DIVIDER: u32 = 0x434c5e;
1097+ pub const STROKE_FOCUS: u32 = 0xd08770;
1087 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;1098 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
1088 1099
1089 // -- text -------------------------------------------------------------------1100 // -- text -------------------------------------------------------------------
@@ -1173,6 +1184,7 @@ pub mod gruvbox {
1173 1184
1174 // -- strokes ----------------------------------------------------------------1185 // -- strokes ----------------------------------------------------------------
1175 pub const STROKE_DIVIDER: u32 = 0x504945;1186 pub const STROKE_DIVIDER: u32 = 0x504945;
1187+ pub const STROKE_FOCUS: u32 = 0x83a598;
1176 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;1188 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
1177 1189
1178 // -- text -------------------------------------------------------------------1190 // -- text -------------------------------------------------------------------
@@ -1253,6 +1265,7 @@ pub mod dracula {
1253 1265
1254 // -- strokes ----------------------------------------------------------------1266 // -- strokes ----------------------------------------------------------------
1255 pub const STROKE_DIVIDER: u32 = 0x44475a;1267 pub const STROKE_DIVIDER: u32 = 0x44475a;
1268+ pub const STROKE_FOCUS: u32 = 0x8be9fd;
1256 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;1269 pub const STROKE_SELECTED: u32 = ACCENT_PRIMARY;
1257 1270
1258 // -- text -------------------------------------------------------------------1271 // -- text -------------------------------------------------------------------
@@ -1348,6 +1361,7 @@ pub mod darkroom {
1348 1361
1349 // -- strokes --------------------------------------------------------------1362 // -- strokes --------------------------------------------------------------
1350 pub const STROKE_DIVIDER: u32 = 0x22262b;1363 pub const STROKE_DIVIDER: u32 = 0x22262b;
1364+ pub const STROKE_FOCUS: u32 = INK1;
1351 /// "Focus/selection ring = 1px ink1 (lamp-adjacent, not coloured)."1365 /// "Focus/selection ring = 1px ink1 (lamp-adjacent, not coloured)."
1352 pub const STROKE_SELECTED: u32 = INK1;1366 pub const STROKE_SELECTED: u32 = INK1;
1353 1367