theme: Allows to use alpha color for active_border but at least 0.3. (#1531)

Co-authored-by: Jason Lee <huacnlee@gmail.com>
This commit is contained in:
obito 2025-11-06 22:23:55 +08:00 committed by GitHub
parent 7f8eb28cfa
commit 80cdf6a44c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 24 additions and 24 deletions

View file

@ -613,9 +613,9 @@ impl ThemeColor {
// TODO: Apply default fallback colors to highlight. // TODO: Apply default fallback colors to highlight.
// Ensure opacity for list_active, table_active // Ensure opacity for list_active, table_active
self.list_active = self.list_active.alpha(0.2); self.list_active = self.list_active.alpha(self.list_active.a.min(0.2));
self.table_active = self.table_active.alpha(0.2); self.table_active = self.table_active.alpha(self.table_active.a.min(0.2));
self.selection = self.selection.alpha(0.3); self.selection = self.selection.alpha(self.selection.a.min(0.3));
} }
} }

View file

@ -20,7 +20,7 @@
"link.active.foreground": "#83a598", "link.active.foreground": "#83a598",
"link.foreground": "#83a598", "link.foreground": "#83a598",
"link.hover.foreground": "#83a598", "link.hover.foreground": "#83a598",
"list.active.background": "#26262622", "list.active.background": "#262626",
"list.active.border": "#9E9E9E", "list.active.border": "#9E9E9E",
"list.even.background": "#262626", "list.even.background": "#262626",
"list.head.background": "#1C1C1C", "list.head.background": "#1C1C1C",

View file

@ -406,7 +406,7 @@
"ring": "#f2d5cf", "ring": "#f2d5cf",
"foreground": "#c6d0f5", "foreground": "#c6d0f5",
"input.border": "#51576d", "input.border": "#51576d",
"list.active.background": "#8caaee11", "list.active.background": "#8caaee15",
"list.even.background": "#303446", "list.even.background": "#303446",
"list.head.background": "#2A2C3C", "list.head.background": "#2A2C3C",
"muted.background": "#414559", "muted.background": "#414559",
@ -546,7 +546,7 @@
"link.active.foreground": "#8aadf4", "link.active.foreground": "#8aadf4",
"link.foreground": "#8aadf4", "link.foreground": "#8aadf4",
"link.hover.foreground": "#8aadf4", "link.hover.foreground": "#8aadf4",
"list.active.background": "#8aadf411", "list.active.background": "#8aadf420",
"list.active.border": "#8aadf4", "list.active.border": "#8aadf4",
"list.even.background": "#24273a", "list.even.background": "#24273a",
"list.head.background": "#363a4f33", "list.head.background": "#363a4f33",
@ -693,8 +693,8 @@
"link.active.foreground": "#89b4fa", "link.active.foreground": "#89b4fa",
"link.foreground": "#89b4fa", "link.foreground": "#89b4fa",
"link.hover.foreground": "#89b4fa", "link.hover.foreground": "#89b4fa",
"list.active.background": "#272C4022", "list.active.background": "#89b4fa15",
"list.active.border": "#89b4fa", "list.active.border": "#89b4fa77",
"list.hover.background": "#202031", "list.hover.background": "#202031",
"list.even.background": "#161622", "list.even.background": "#161622",
"list.head.background": "#1E1E2E", "list.head.background": "#1E1E2E",

View file

@ -19,7 +19,7 @@
"link.active.foreground": "#7fbbb3", "link.active.foreground": "#7fbbb3",
"link.foreground": "#7fbbb3", "link.foreground": "#7fbbb3",
"link.hover.foreground": "#7fbbb3", "link.hover.foreground": "#7fbbb3",
"list.active.background": "#a7c08022", "list.active.background": "#a7c08025",
"list.active.border": "#a7c080", "list.active.border": "#a7c080",
"list.even.background": "#F4F1E2", "list.even.background": "#F4F1E2",
"list.head.background": "#F4F1E2", "list.head.background": "#F4F1E2",
@ -163,7 +163,7 @@
"link.foreground": "#7fbbb3", "link.foreground": "#7fbbb3",
"link.hover.foreground": "#7fbbb3", "link.hover.foreground": "#7fbbb3",
"list.active.background": "#a7c08022", "list.active.background": "#a7c08022",
"list.active.border": "#a7c080", "list.active.border": "#a7c08088",
"list.even.background": "#2E383B", "list.even.background": "#2E383B",
"list.head.background": "#2E383B", "list.head.background": "#2E383B",
"muted.background": "#2E383B", "muted.background": "#2E383B",

View file

@ -15,7 +15,7 @@
"danger.background": "#593002", "danger.background": "#593002",
"foreground": "#FFFFCE", "foreground": "#FFFFCE",
"input.border": "#252525", "input.border": "#252525",
"list.active.background": "#21010122", "list.active.background": "#72020222",
"list.active.border": "#720202", "list.active.border": "#720202",
"list.even.background": "#090909", "list.even.background": "#090909",
"list.hover.background": "#111111", "list.hover.background": "#111111",

View file

@ -16,7 +16,7 @@
"ring": "#D0A215", "ring": "#D0A215",
"selection.background": "#D0A21577", "selection.background": "#D0A21577",
"input.border": "#E6E4D9", "input.border": "#E6E4D9",
"list.active.background": "#D0A21577", "list.active.background": "#D0A21520",
"list.active.border": "#D0A215", "list.active.border": "#D0A215",
"list.background": "#FFFCF0", "list.background": "#FFFCF0",
"list.even.background": "#F2F0E5", "list.even.background": "#F2F0E5",

View file

@ -14,8 +14,8 @@
"border": "#333333", "border": "#333333",
"foreground": "#a8a49d", "foreground": "#a8a49d",
"input.border": "#333333", "input.border": "#333333",
"list.active.background": "#B196C611", "list.active.background": "#B196C622",
"list.active.border": "#B196C644", "list.active.border": "#B196C699",
"list.even.background": "#18151B77", "list.even.background": "#18151B77",
"muted.background": "#333333", "muted.background": "#333333",
"muted.foreground": "#726E69", "muted.foreground": "#726E69",

View file

@ -19,7 +19,7 @@
"link.active.foreground": "#005f87", "link.active.foreground": "#005f87",
"link.foreground": "#005f87", "link.foreground": "#005f87",
"link.hover.foreground": "#005f87", "link.hover.foreground": "#005f87",
"list.active.background": "#8A8A4A33", "list.active.background": "#79792C20",
"list.active.border": "#79792C", "list.active.border": "#79792C",
"list.hover.background": "#D5D5D5", "list.hover.background": "#D5D5D5",
"list.even.background": "#DFDFDF", "list.even.background": "#DFDFDF",

View file

@ -18,8 +18,8 @@
"link.active.foreground": "#97bedc", "link.active.foreground": "#97bedc",
"link.foreground": "#97bedc", "link.foreground": "#97bedc",
"link.hover.foreground": "#97bedc", "link.hover.foreground": "#97bedc",
"list.active.background": "#97bedc11", "list.active.background": "#97bedc15",
"list.active.border": "#97bedc44", "list.active.border": "#97bedc",
"list.even.background": "#1C1C1C", "list.even.background": "#1C1C1C",
"muted.background": "#3a3a3a", "muted.background": "#3a3a3a",
"muted.foreground": "#767676", "muted.foreground": "#767676",

View file

@ -16,7 +16,7 @@
"ring": "#0064E1", "ring": "#0064E1",
"danger.foreground": "#FFFFFF", "danger.foreground": "#FFFFFF",
"input.border": "#E0E0E0", "input.border": "#E0E0E0",
"list.active.background": "#C7DEFF", "list.active.background": "#0064E110",
"list.active.border": "#0064E1", "list.active.border": "#0064E1",
"list.background": "#FFFFFF", "list.background": "#FFFFFF",
"list.even.background": "#F7F7F7", "list.even.background": "#F7F7F7",
@ -157,7 +157,7 @@
"ring": "#0059D1", "ring": "#0059D1",
"foreground": "#DEDEDE", "foreground": "#DEDEDE",
"input.border": "#494949", "input.border": "#494949",
"list.active.background": "#353436", "list.active.background": "#0059D115",
"list.active.border": "#0059D1", "list.active.border": "#0059D1",
"muted.background": "#1E1D1E", "muted.background": "#1E1D1E",
"muted.foreground": "#9D9D9D", "muted.foreground": "#9D9D9D",

View file

@ -25,7 +25,7 @@
"link.active.foreground": "#00FF00", "link.active.foreground": "#00FF00",
"link.foreground": "#00FF00", "link.foreground": "#00FF00",
"link.hover.foreground": "#00FF00", "link.hover.foreground": "#00FF00",
"list.active.background": "#00190066", "list.active.background": "#00FF0011",
"list.active.border": "#00FF00", "list.active.border": "#00FF00",
"list.even.background": "#00190066", "list.even.background": "#00190066",
"muted.background": "#001900", "muted.background": "#001900",

View file

@ -20,7 +20,7 @@
"link.foreground": "#5A6599", "link.foreground": "#5A6599",
"link.hover.foreground": "#5A6599", "link.hover.foreground": "#5A6599",
"list.hover.background": "#d5d5d5", "list.hover.background": "#d5d5d5",
"list.active.background": "#60606022", "list.active.background": "#5A659922",
"list.active.border": "#5A6599", "list.active.border": "#5A6599",
"list.even.background": "#F0F0F0", "list.even.background": "#F0F0F0",
"muted.background": "#e5e5e5", "muted.background": "#e5e5e5",

View file

@ -15,7 +15,7 @@
"foreground": "#586E75", "foreground": "#586E75",
"input.border": "#DCD4BC", "input.border": "#DCD4BC",
"link.foreground": "#587573", "link.foreground": "#587573",
"list.active.background": "#859ca322", "list.active.background": "#586E75",
"list.active.border": "#586E75", "list.active.border": "#586E75",
"list.even.background": "#EEE8D599", "list.even.background": "#EEE8D599",
"muted.background": "#eee8d5", "muted.background": "#eee8d5",
@ -156,7 +156,7 @@
"border": "#083e4c", "border": "#083e4c",
"foreground": "#fdf6e3", "foreground": "#fdf6e3",
"input.border": "#083e4c", "input.border": "#083e4c",
"list.active.background": "#0d667d22", "list.active.background": "#0d667d25",
"list.active.border": "#0d667d", "list.active.border": "#0d667d",
"list.even.background": "#15333A99", "list.even.background": "#15333A99",
"muted.background": "#073642", "muted.background": "#073642",

View file

@ -16,7 +16,7 @@
"ring": "#7aa2f7", "ring": "#7aa2f7",
"foreground": "#c0caf5", "foreground": "#c0caf5",
"input.border": "#414868", "input.border": "#414868",
"link.active.foreground": "#7aa2f7", "link.active.foreground": "#7aa2f722",
"link.foreground": "#7aa2f7", "link.foreground": "#7aa2f7",
"link.hover.foreground": "#7aa2f7", "link.hover.foreground": "#7aa2f7",
"list.active.background": "#7aa2f722", "list.active.background": "#7aa2f722",