[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 01/01: refactoring of css styles in program code and file

noreply at xfce.org noreply at xfce.org
Tue Mar 14 19:36:10 CET 2017


This is an automated email from the git hooks/post-receive script.

timystery pushed a commit to branch master
in repository panel-plugins/xfce4-sensors-plugin.

commit 1151855de50ee18e5c72488429ba82227920da1b
Author: Fabian <timystery at arcor.de>
Date:   Mon Mar 13 23:47:13 2017 +0100

    refactoring of css styles in program code and file
---
 panel-plugin/sensors-plugin.c         | 24 ++++++++++--------------
 panel-plugin/xfce4-sensors-plugin.css | 16 ++++++++--------
 2 files changed, 18 insertions(+), 22 deletions(-)

diff --git a/panel-plugin/sensors-plugin.c b/panel-plugin/sensors-plugin.c
index ddc1606..87e26c0 100644
--- a/panel-plugin/sensors-plugin.c
+++ b/panel-plugin/sensors-plugin.c
@@ -138,8 +138,8 @@ sensors_set_bar_color (t_labelledlevelbar *ptr_labelledlevelbar, double val_perc
         g_strlcat(str_gtkcssdata, ";\n", sizeof(str_gtkcssdata));
     }
 
-    g_strlcat(str_gtkcssdata,   "   padding: 1px;\n"
-                                "   border-style: ridge;\n"
+    g_strlcat(str_gtkcssdata,   "   padding: 0px;\n"
+                                "   border-style: 1px none black;\n"
                                 "}\n", sizeof(str_gtkcssdata));
 
     //DBG("CSS data for current levelbar: %s\nwith length %lu.\n", str_gtkcssdata, strlen(str_gtkcssdata));
@@ -609,36 +609,32 @@ sensors_show_graphical_display (t_sensors *sensors)
                                     ptr_cssdatafile, NULL);
         }
         else {
-            gchar *ptr_cssstring =  "levelbar block.full {\n"
+            gchar *ptr_cssstring =  "levelbar block {\n"
+                                    "   min-height : 0px;\n"
+                                    "   min-width : 0px;\n"
+                                    "   border: 0px none;\n"
+                                    "   margin: 0px;\n"
+                                    "   padding: 0px;\n"
+                                    "}\n"
+                                    "levelbar block.full {\n"
                                     "   background-color: "
                                     COLOR_ERROR
                                     ";\n"
-                                    "   padding: 1px;\n"
-                                    "   border-style: ridge;\n"
                                     "}\n"
                                     "levelbar block.high {\n"
                                     "   background-color: "
                                     COLOR_WARN
                                     ";\n"
-                                    "   padding: 1px;\n"
-                                    "   border-style: ridge;\n"
                                     "}\n"
                                     "levelbar block.warn-low {\n"
                                     "   background-color: "
                                     COLOR_WARN
                                     ";\n"
-                                    "   padding: 1px;\n"
-                                    "   border-style: ridge;\n"
                                     "}\n"
                                     "levelbar block.low {\n"
                                     "   background-color: "
                                     COLOR_ERROR
                                     ";\n"
-                                    "   padding: 1px;\n"
-                                    "   border-style: ridge;\n"
-                                    //"   border-color: "
-                                    //COLOR_ERROR
-                                    //";\n"
                                     "}\n";
 
             gtk_css_provider_load_from_data (GTK_CSS_PROVIDER(sensors->css_provider), ptr_cssstring,
diff --git a/panel-plugin/xfce4-sensors-plugin.css b/panel-plugin/xfce4-sensors-plugin.css
index 783300f..9174f63 100644
--- a/panel-plugin/xfce4-sensors-plugin.css
+++ b/panel-plugin/xfce4-sensors-plugin.css
@@ -1,23 +1,23 @@
+levelbar block {
+    min-height : 0px;
+    min-width : 0px;
+    border: 0px none;
+    margin: 0px;
+    padding: 0px;
+}
+
 levelbar block.full {
    background-color: #F00000;
-   padding: 1px;
-   border-style: ridge;
 }
 
 levelbar block.high {
    background-color: #F0F000;
-   padding: 1px;
-   border-style: ridge;
 }
 
 levelbar block.warn-low {
    background-color: #F0F000;
-   padding: 1px;
-   border-style: ridge;
 }
 
 levelbar block.low {
    background-color: #F00000;
-   padding: 1px;
-   border-style: ridge;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list