Skip to content

Commit 72b8055

Browse files
committed
Fix #287
1 parent f3ba1d7 commit 72b8055

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

gtk/src/adw-gtk3/gtk-3.0/_apps.scss

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -352,34 +352,6 @@ window#whiskermenu-window {
352352
}
353353
}
354354

355-
// ************
356-
// * Chromium *
357-
// ************
358-
359-
window.background.chromium {
360-
background-color: if($variant == 'light', $bg_color, gtkmix(currentColor, $bg_color, 10%));
361-
362-
// If there was/is an incognito class then https://github.com/lassekongo83/adw-gtk3/issues/147
363-
// could be fixed, so disabled for now until a better solution is found.
364-
//headerbar.titlebar button.titlebutton {
365-
// color: white;
366-
//}
367-
368-
entry,
369-
> button {
370-
border-color: gtkmix(currentColor, $bg_color, 27%);
371-
background-color: gtkmix(currentColor, $bg_color, 20%);
372-
}
373-
374-
textview.view {
375-
background-color: $base_color;
376-
}
377-
378-
menuitem {
379-
border-radius: 0;
380-
}
381-
}
382-
383355
// ******************
384356
// * gnome-calendar *
385357
// ******************
@@ -404,8 +376,6 @@ window.background.chromium {
404376
}
405377

406378
// Make sure text selection is somewhat visible on websites with various backgrounds
407-
// in both chromium and firefox
408-
window.background.chromium,
409379
#MozillaGtkWidget.background {
410380
selection {
411381
&:focus, & {

gtk/src/adw-gtk3/gtk-3.0/libadwaita-tweaks.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,34 @@ notebook > header {
2525
--accent-color: var(--accent-bg-color);
2626
--accent-bg-color: var(--accent-blue);
2727
--accent-fg-color: @accent_fg_color;
28+
29+
--card-bg-color: @card_bg_color;
30+
}
31+
32+
/* Chromium */
33+
.background.chromium {
34+
background-color: color-mix(in srgb, currentColor 5%, @headerbar_bg_color);
35+
}
36+
37+
.background.chromium windowcontrols > button {
38+
background-color: color-mix(in srgb, currentColor 10%, transparent);
39+
min-width: 24px;
40+
padding: 0;
41+
box-shadow: none;
42+
margin: 0 4px; /* doesn't work on the far edges of the header-bar */
43+
}
44+
45+
.background.chromium windowcontrols > button {
46+
background-color: color-mix(in srgb, currentColor 10%, transparent);
47+
border-radius: 100%;
48+
transition: background 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
49+
}
50+
51+
.background.chromium windowcontrols > button:hover {
52+
background-color: color-mix(in srgb, currentColor 15%, transparent);
2853
}
54+
55+
.background.chromium windowcontrols > button:active {
56+
background-color: color-mix(in srgb, currentColor 30%, transparent);
57+
}
58+

0 commit comments

Comments
 (0)