From 2b140742f734b024166338d8be001fc54a3a0821 Mon Sep 17 00:00:00 2001 From: lainsce Date: Tue, 13 Aug 2024 18:56:58 -0300 Subject: [PATCH] Fix some woes with color --- data/style.css | 2 +- src/application.vala | 2 +- src/window.vala | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/data/style.css b/data/style.css index cca7d67..2e21432 100644 --- a/data/style.css +++ b/data/style.css @@ -21,7 +21,7 @@ -gtk-icon-size: 24px; background: @success_container_fg_color; color: @success_container_bg_color; - box-shadow: 0 0 0 1px @success_container_bg_color; + box-shadow: 0 0 0 2px @success_container_bg_color; } .play-button:hover { background: mix(@success_container_fg_color, @view_fg_color, 0.05); diff --git a/src/application.vala b/src/application.vala index 3002227..e17f898 100644 --- a/src/application.vala +++ b/src/application.vala @@ -124,7 +124,7 @@ namespace Victrola { protected override void startup () { Gdk.RGBA accent_color = { 0 }; accent_color.parse ("#F7812B"); - default_accent_color = He.from_gdk_rgba (accent_color); + default_accent_color = { accent_color.red * 255, accent_color.green * 255, accent_color.blue * 255 }; override_accent_color = true; default_scheme_variant = He.SchemeVariant.CONTENT; diff --git a/src/window.vala b/src/window.vala index 4125620..43ec31a 100644 --- a/src/window.vala +++ b/src/window.vala @@ -442,16 +442,15 @@ namespace Victrola { He.Ensor.accent_from_pixels_async.begin (pixbuf.get_pixels_with_length (), pixbuf.get_has_alpha (), (obj, res) => { GLib.Array result = He.Ensor.accent_from_pixels_async.end (res); int top = result.index (0); - print ("FIRST VICTROLA ARGB RESULT (should be the same as Ensor's): %d\n".printf (top)); if (top != 0) { Gdk.RGBA accent_color = { 0 }; accent_color.parse (He.hexcode_argb (top)); - app.default_accent_color = He.from_gdk_rgba (accent_color); + app.default_accent_color = { accent_color.red * 255, accent_color.green * 255, accent_color.blue * 255 }; } else { Gdk.RGBA accent_color = { 0 }; accent_color.parse ("#F7812B"); - app.default_accent_color = He.from_gdk_rgba (accent_color); + app.default_accent_color = { accent_color.red * 255, accent_color.green * 255, accent_color.blue * 255 }; } loop.quit (); });