Skip to content

Commit

Permalink
Cleanup nested listbox styling
Browse files Browse the repository at this point in the history
  • Loading branch information
saivert committed Dec 26, 2023
1 parent b297fe9 commit 0dc7788
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/resources/resources.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<file preprocess="xml-stripblanks" alias="gtk/devicebox.ui">ui/devicebox.ui</file>
<file preprocess="xml-stripblanks" alias="gtk/profilerow.ui">ui/profilerow.ui</file>
<file>ui/levelbar.css</file>
<file>ui/list.css</file>
</gresource>
<gresource prefix="/com/saivert/pwvucontrol/icons/scalable/actions">
<file preprocess="xml-stripblanks" alias="com.saivert.pwvucontrol.svg">../icons/com.saivert.pwvucontrol.svg</file>
Expand Down
4 changes: 4 additions & 0 deletions data/resources/ui/list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.boxed-list > * list {
background: transparent;
border: 0px;
}
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ fn main() -> gtk::glib::ExitCode {

let css = gtk::CssProvider::new();
css.load_from_resource("/com/saivert/pwvucontrol/ui/levelbar.css");
css.load_from_resource("/com/saivert/pwvucontrol/ui/list.css");

gtk::style_context_add_provider_for_display(
&gtk::gdk::Display::default().unwrap(),
Expand Down

0 comments on commit 0dc7788

Please sign in to comment.