Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mimic Libadwaita window and headerbar style #22

Merged
merged 1 commit into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/handy-window-dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/handy-window.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 32 additions & 13 deletions assets/handy-window.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,41 @@
$variant: 'light' !default;

@if $variant == 'dark' {
window.csd.unified:not(.solid-csd):not(.fullscreen):not(.maximized) {
decoration-overlay {
box-shadow: inset 0 0 0 1px transparentize(white, .93);
}

headerbar {
box-shadow: none;
}
// Mimic Libadwaita window and headerbar style

window.csd.unified {
&:not(.solid-csd):not(.fullscreen):not(.maximized) decoration-overlay {
box-shadow: inset 0 0 0 1px transparentize(white, .93);
}

decoration {
box-shadow: 0 3px 9px 1px transparentize(black, .5);
box-shadow: 0 1px 3px 3px transparent,
0 2px 8px 2px transparentize(black, 0.87),
0 3px 20px 10px transparentize(black, 0.91),
0 6px 32px 16px transparentize(black, 0.96),
0 0 0 1px transparentize(black, .95);

&:backdrop {
box-shadow: 0 3px 9px 1px transparent,
0 2px 6px 2px transparentize(black, .8);
box-shadow: 0 1px 3px 3px transparentize(black, 0.91),
0 2px 14px 5px transparentize(black, 0.95),
0 4px 28px 12px transparentize(black, 0.97),
0 6px 32px 16px transparent,
0 0 0 1px transparentize(black, .98);
}
}
}

headerbar {
min-height: 47px;
background: if($variant == 'light', #ebebeb, #303030);
box-shadow: inset 0 -1px if($variant == 'light', transparentize(black, .93), transparentize(black, .64));
border: none;

&:backdrop{
background: if($variant == 'light', #fafafa, #242424);
}
}

button.titlebutton {
padding: 4px;
margin: 1px;
}