From bb5551339d6c423a2ceb053e8d21f4f69b061f42 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Mon, 1 Jan 2024 09:13:42 +0900 Subject: [PATCH] Styles: Remove Extra.css The classes defined in this file renamed to title-* in the following commit: https://github.com/elementary/granite/commit/15bd5ebf87177d5aa79687fef4eed42c9c679c3f And since these classes seem to be defined in stylesheets in other distributions like Ubuntu, this file is now meaningless. --- data/Extra.css | 11 ----------- data/reco.gresource.xml | 1 - src/Application.vala | 9 --------- 3 files changed, 21 deletions(-) delete mode 100644 data/Extra.css diff --git a/data/Extra.css b/data/Extra.css deleted file mode 100644 index b2014212..00000000 --- a/data/Extra.css +++ /dev/null @@ -1,11 +0,0 @@ -/* From elementary/stylesheet, src/gtk-3.0/_typography.scss */ - -.h2 { - font-weight: 300; - font-size: 18pt; - letter-spacing: -0.05em; -} - -.h3 { - font-size: 11pt; -} diff --git a/data/reco.gresource.xml b/data/reco.gresource.xml index 71c84530..f76fe8f8 100644 --- a/data/reco.gresource.xml +++ b/data/reco.gresource.xml @@ -2,7 +2,6 @@ Application.css - Extra.css icons/record-completed-symbolic.svg diff --git a/src/Application.vala b/src/Application.vala index 4b04bd48..46569294 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -52,15 +52,6 @@ public class Application : Gtk.Application { cssprovider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); - if (!Application.IS_ON_PANTHEON) { - var extra_cssprovider = new Gtk.CssProvider (); - extra_cssprovider.load_from_resource ("/com/github/ryonakano/reco/Extra.css"); - // TODO: Deprecated in Gtk 4.10, buit no alternative api is provided so leave it for now - Gtk.StyleContext.add_provider_for_display (display, - extra_cssprovider, - Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); - } - // Load GResource for our custom icons var icon_theme = Gtk.IconTheme.get_for_display (display); icon_theme.add_resource_path ("/com/github/ryonakano/reco");