mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
apprt/gtk: color popovers when window-theme=ghostty
This looks better than the regular dark color. It also happens to match what Ptyxis does. It does not support non-libadwaita builds. Signed-off-by: Tristan Partin <tristan@partin.io>
This commit is contained in:
@ -988,6 +988,8 @@ fn loadRuntimeCss(
|
||||
\\ --headerbar-fg-color: rgb({d},{d},{d});
|
||||
\\ --headerbar-bg-color: rgb({d},{d},{d});
|
||||
\\ --headerbar-backdrop-color: oklab(from var(--headerbar-bg-color) calc(l * 0.9) a b / alpha);
|
||||
\\ --popover-fg-color: rgb({d},{d},{d});
|
||||
\\ --popover-bg-color: rgb({d},{d},{d});
|
||||
\\}}
|
||||
\\windowhandle {{
|
||||
\\ background-color: var(--headerbar-bg-color);
|
||||
@ -1003,6 +1005,12 @@ fn loadRuntimeCss(
|
||||
headerbar_background.r,
|
||||
headerbar_background.g,
|
||||
headerbar_background.b,
|
||||
headerbar_foreground.r,
|
||||
headerbar_foreground.g,
|
||||
headerbar_foreground.b,
|
||||
headerbar_background.r,
|
||||
headerbar_background.g,
|
||||
headerbar_background.b,
|
||||
}),
|
||||
else => {},
|
||||
}
|
||||
|
Reference in New Issue
Block a user