Skip to content

Commit b9bc0b9

Browse files
authored
Lean v3: Increase contrast of passive extension buttons & invert them in dark mode
Fix KiKaraage/ZenMods#30
1 parent 019f237 commit b9bc0b9

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

  • themes/1e86cf37-a127-4f24-b919-d265b5ce29a0

themes/1e86cf37-a127-4f24-b919-d265b5ce29a0/chrome.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,24 @@
131131

132132
/* Set lighter opacity for passive extension buttons */
133133
.unified-extensions-item-icon {
134-
opacity: 0.3;
134+
opacity: 0.6;
135135
}
136136
.unified-extensions-item-action-button:hover {
137-
background-color: color-mix(in srgb, currentColor 3%, transparent) !important;
137+
background-color: color-mix(in srgb, currentColor 20%, transparent) !important;
138138
}
139139

140140
#unified-extensions-view toolbarseparator {
141141
margin-top: 0px !important;
142142
}
143143
}
144+
/* Invert the passive extension icons in dark mode */
145+
@media (prefers-color-scheme: dark) {
146+
@media (-moz-bool-pref: "mod.extension.viewgrid") {
147+
.unified-extensions-item-icon {
148+
filter: invert(1) !important;
149+
}
150+
}
151+
}
144152

145153
/* 2 - Hide Zoom button in URL bar */
146154
@media (-moz-bool-pref: "mod.lean.hide-zoom") {

0 commit comments

Comments
 (0)