Skip to content

Commit

Permalink
Restore drop shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
otsaloma committed Jul 21, 2023
1 parent 5a3275f commit 8ab5ef6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions catapult/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@ def _init_plugins(self):
logging.exception(f"Failed to initialize {name}")

def _init_properties(self):
# XXX: Not needed anymore? (GTK 4.10.4)
# We seem to need 'csd' and/or 'ssd' here, otherwise we get
# graphical glitches with the transparent window background.
# https://docs.gtk.org/gtk4/class.Window.html#css-nodes
self.add_css_class("csd")
self.add_css_class("ssd")
# self.add_css_class("csd")
# self.add_css_class("ssd")
self.add_css_class("catapult-window")
self.set_icon_name("io.otsaloma.catapult")
Gtk.Window.set_default_icon_name("io.otsaloma.catapult")
Expand Down
7 changes: 2 additions & 5 deletions data/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@
.catapult-body {
background-color: alpha(@bg-color, 0.9);
border-radius: 12px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
margin: 12px;
padding: 12px 0 15px 0;

/* XXX: Causes an unavoidable light gray outside border. */
/* box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); */
/* margin: 12px; */

}

.catapult-input-box {
Expand Down

0 comments on commit 8ab5ef6

Please sign in to comment.