From 6d925ea23ae7bae6627e2e6575d34bc7e6f7a628 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 14 Mar 2024 16:05:54 -0300 Subject: [PATCH] remove most custom style (but leave large font) gtk default already looks amazing --- rosenrot | Bin 40176 -> 40176 bytes rosenrot.c | 2 +- style.css | 28 ------- .../{style-original.css => style-v1.css} | 0 .../styles/{style-nuno.css => style-v2.css} | 0 user-scripts/styles/style-v3.css | 70 ++++++++++++++++++ 6 files changed, 71 insertions(+), 29 deletions(-) rename user-scripts/styles/{style-original.css => style-v1.css} (100%) rename user-scripts/styles/{style-nuno.css => style-v2.css} (100%) create mode 100644 user-scripts/styles/style-v3.css diff --git a/rosenrot b/rosenrot index cb3f6a03be8b0c13591f669016f452907b3cff11..dfffdcdbdc31b753626306ca33e4a00f6543cbda 100755 GIT binary patch delta 55 zcmeyclj*}wrVSa)B4@Q7+Pd8ATAckK=&y=$DOXiB`m(u(IVg!QuPDDnzqq6_Csi-G LxOnrOR1tFkh{zUm delta 55 zcmeyclj*}wrVSa)B3G)eS)EY&y!*b&5ygpzLN87dd3kDc4RcTupMG&kWlpMIa&a*O L5Ny7aDq;=*_oEm< diff --git a/rosenrot.c b/rosenrot.c index 34a74ad..a932133 100644 --- a/rosenrot.c +++ b/rosenrot.c @@ -407,7 +407,7 @@ int main(int argc, char** argv) gtk_init(NULL, NULL); // g_object_set(gtk_settings_get_default(), GTK_SETTINGS_CONFIG_H, NULL); // GtkCssProvider* css = gtk_css_provider_new(); - gtk_css_provider_load_from_path(css, "/usr/share/themes/rose/style.css", NULL); + gtk_css_provider_load_from_path(css, "/usr/share/themes/rosenrot/style.css", NULL); gtk_style_context_add_provider_for_screen(gdk_screen_get_default(), GTK_STYLE_PROVIDER(css), 800); /* Initialize GTK objects. These are declared as static globals at the top of this file */ diff --git a/style.css b/style.css index 64333b5..b0dee59 100644 --- a/style.css +++ b/style.css @@ -1,25 +1,9 @@ -@define-color Surface0 #313244; -@define-color Surface1 #45475a; -@define-color Base #1e1e2e; -@define-color Mantle #181825; -@define-color Lavender #b4befe; -@define-color Text #cdd6f4; - * { - padding: 0px; - margin: 0px; - outline-color: @Lavender; - color: @Text; - border-color: white; font-size: 25px; /*@Base; */ /* border-bottom-color: @Base; */ } -window, notebook, headerbar { - background: @Base; -} - /* Make titlebar pretty gigantic. I'm pretty myopic. */ .titlebar { padding: 10px; @@ -38,33 +22,21 @@ header * { } tabs { - background-color: @Base; padding: 3px; - outline-color: white; - border-color: @Base; } tab { - background-color: @Base; margin: 2px 5px 2px 0px; padding: 5px; border-style: solid; font-size: 27px; - /*border-color: white; - border-bottom-color: white; - outline-color: white; - margin: 5px; - padding-left: 10px; - padding-right: 10px; */ } entry { - background-color: @Surface0; padding-left: 10px; } entry:focus { - background-color: @Surface0; padding-left: 10px; } diff --git a/user-scripts/styles/style-original.css b/user-scripts/styles/style-v1.css similarity index 100% rename from user-scripts/styles/style-original.css rename to user-scripts/styles/style-v1.css diff --git a/user-scripts/styles/style-nuno.css b/user-scripts/styles/style-v2.css similarity index 100% rename from user-scripts/styles/style-nuno.css rename to user-scripts/styles/style-v2.css diff --git a/user-scripts/styles/style-v3.css b/user-scripts/styles/style-v3.css new file mode 100644 index 0000000..64333b5 --- /dev/null +++ b/user-scripts/styles/style-v3.css @@ -0,0 +1,70 @@ +@define-color Surface0 #313244; +@define-color Surface1 #45475a; +@define-color Base #1e1e2e; +@define-color Mantle #181825; +@define-color Lavender #b4befe; +@define-color Text #cdd6f4; + +* { + padding: 0px; + margin: 0px; + outline-color: @Lavender; + color: @Text; + border-color: white; + font-size: 25px; + /*@Base; */ + /* border-bottom-color: @Base; */ +} + +window, notebook, headerbar { + background: @Base; +} + +/* Make titlebar pretty gigantic. I'm pretty myopic. */ +.titlebar { + padding: 10px; + font-size: 30px; +} + + +.titlebar * { + padding: 10px; + font-size: 27px; +} + +header * { + font-size: 20px; + padding: 5px; +} + +tabs { + background-color: @Base; + padding: 3px; + outline-color: white; + border-color: @Base; +} + +tab { + background-color: @Base; + margin: 2px 5px 2px 0px; + padding: 5px; + border-style: solid; + font-size: 27px; + /*border-color: white; + border-bottom-color: white; + outline-color: white; + margin: 5px; + padding-left: 10px; + padding-right: 10px; */ +} + +entry { + background-color: @Surface0; + padding-left: 10px; +} + +entry:focus { + background-color: @Surface0; + padding-left: 10px; + +}