now featuring css

This commit is contained in:
me 2024-10-12 18:41:03 +00:00
parent 1e13ef2454
commit ddd2cfaa6b
4 changed files with 13 additions and 0 deletions

6
src/wavelet.css Normal file
View file

@ -0,0 +1,6 @@
#seek-scale slider {
margin: 0px;
opacity: 0%;
min-width: 10px;
min-height: 10px;
}

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/eu/callcc/Wavelet">
<file>wavelet.css</file>
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
<file preprocess="xml-stripblanks">play_queue.ui</file>
<file preprocess="xml-stripblanks">setup.ui</file>

View file

@ -162,6 +162,7 @@ paintable: bind template.playing_cover_art;
}
Scale play_position {
name: "seek-scale";
orientation: horizontal;
width-request: 200;

View file

@ -55,6 +55,11 @@ class Wavelet.Window : Adw.ApplicationWindow {
public Window (Gtk.Application app) {
Object (application: app);
var provider = new Gtk.CssProvider ();
provider.load_from_resource("/eu/callcc/Wavelet/wavelet.css");
Gtk.StyleContext.add_provider_for_display (Gdk.Display.get_default (), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
this.close_request.connect (() => {
app.quit ();
return false;