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

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 9c6a39c52054b7ac6b58804ed6089219d5e9834c
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Fri Nov 29 13:19:28 2024 +0000

    cpufreq - add gradient objects for new freq colorbar display
---
 data/elementary/themes/colorclasses.edc |  10 +++++++
 data/elementary/themes/edc/cpufreq.edc  |  45 ++++++++++++++++++++++++++++++++
 data/elementary/themes/img/grad_h.png   | Bin 0 -> 160 bytes
 3 files changed, 55 insertions(+)

diff --git a/data/elementary/themes/colorclasses.edc b/data/elementary/themes/colorclasses.edc
index 0e9bc0ba7c..6b26d8fdd7 100644
--- a/data/elementary/themes/colorclasses.edc
+++ b/data/elementary/themes/colorclasses.edc
@@ -66,6 +66,8 @@ color_tree {
       "/bg/normal/gadgets/mixer/base";
       "/fg/disabled/text-preedit-sel";
       "/fg/normal/text-current";
+      "/fg/normal/gadgets/cpufreq/cpu_usage/0";
+      "/fg/normal/gadgets/cpufreq/cpu_freq/0";
    };
    ":bg-darkest" {
       "/bg/pressed/gadgets/tasks/base";
@@ -301,6 +303,7 @@ color_tree {
       "/fg-alt/selected";
       "/fg-alt/selected-pressed";
       "/fg/selected/fileman/filesize/0";
+      "/fg/normal/gadgets/cpufreq/cpu_usage/4";
    }
    ":selected" {
       "/bg/selected";
@@ -388,6 +391,7 @@ color_tree {
       "/fg/disabled/text-info";
       "/fg/disabled/text-type";
       "/fg/disabled/text-standout";
+      "/fg/normal/gadgets/cpufreq/cpu_usage/1";
    }
    ":selected-alt" {
       "/fg/normal/fileman/mount/on";
@@ -407,6 +411,7 @@ color_tree {
       "/fg/selected/fileman/filesize/2";
       "/fg/normal/fileperm/execute";
       "/fg/normal/filegraph/bar";
+      "/fg/normal/gadgets/cpufreq/cpu_usage/3";
    }
    ":selected-alt-trans" {
       "/bg/normal/access";
@@ -441,6 +446,7 @@ color_tree {
       "/fg/normal/gadgets/clock/analog/hands/secs";
       "/fg/normal/fileperm/write";
       "/fg/normal/filegraph/bar2";
+      "/fg/normal/gadgets/cpufreq/cpu_usage/2";
    }
    ":selected4-dim" {
       "/fg/disabled/text-warning";
@@ -460,6 +466,7 @@ color_tree {
    ":selected6" {
       "/fg/normal/text-string";
       "/fg/selected/fileman/filesize/1";
+      "/fg/normal/gadgets/cpufreq/cpu_freq/3";
    }
    ":selected6-dim" {
       "/fg/disabled/text-string";
@@ -489,6 +496,7 @@ color_tree {
    }
    ":light-glow" {
       "/fg/normal/gadgets/backlight/filament/on";
+      "/fg/normal/gadgets/cpufreq/cpu_freq/4";
    }
    ":dim-dark" {
       "/dim/pressed";
@@ -581,9 +589,11 @@ color_tree {
    }
    ":comment" {
       "/fg/normal/text-comment";
+      "/fg/normal/gadgets/cpufreq/cpu_freq/2";
    }
    ":comment-dim" {
       "/fg/disabled/text-comment";
+      "/fg/normal/gadgets/cpufreq/cpu_freq/1";
    }
    ":number" {
       "/fg/normal/text-number";
diff --git a/data/elementary/themes/edc/cpufreq.edc b/data/elementary/themes/edc/cpufreq.edc
index de92282f3b..26e5fa13f5 100644
--- a/data/elementary/themes/edc/cpufreq.edc
+++ b/data/elementary/themes/edc/cpufreq.edc
@@ -290,3 +290,48 @@ group { name: "e/modules/cpufreq/main";
    }
 }
 
+#define G(_p, _p0, _p1, _v0, _v1) \
+part { name: "g"_p0".0"; type: RECT; mouse_events: 0; \
+ description { state: "default" 0.0; \
+  color_class: "/fg/normal/gadgets/cpufreq/"_p"/"_p0; \
+  rel1.relative: _v0  0.0; \
+  rel2.relative: _v1  1.0; \
+ } \
+} \
+part { name: "g"_p0".1"; mouse_events: 0; \
+ description { state: "default" 0.0; \
+  rel.to: "g"_p0".0"; \
+  image.normal: "grad_h.png"; \
+  color_class: "/fg/normal/gadgets/cpufreq/"_p"/"_p1; \
+ } \
+}
+group { name: "e/modules/cpufreq/grad/cpu_usage";
+  // 0 -> :bg-dark
+  // 1 -> :selected-dim
+  // 2 -> :selected4
+  // 3 -> :selected-alt
+  // 4 -> :fg-light
+  images.image: "grad_h.png" COMP;
+  parts {
+    G("cpu_usage", "0", "1", 0.0 , 0.25)
+    G("cpu_usage", "1", "2", 0.25, 0.50)
+    G("cpu_usage", "2", "3", 0.50, 0.75)
+    G("cpu_usage", "3", "4", 0.75, 1.00)
+  }
+}
+
+group { name: "e/modules/cpufreq/grad/cpu_freq";
+  // :bg-dark
+  // :comment-dim
+  // :comment
+  // :selected6
+  // :light-glow
+  images.image: "grad_h.png" COMP;
+  parts {
+    G("cpu_freq", "0", "1", 0.0 , 0.25)
+    G("cpu_freq", "1", "2", 0.25, 0.50)
+    G("cpu_freq", "2", "3", 0.50, 0.75)
+    G("cpu_freq", "3", "4", 0.75, 1.00)
+  }
+}
+#undef G
diff --git a/data/elementary/themes/img/grad_h.png b/data/elementary/themes/img/grad_h.png
new file mode 100644
index 0000000000..328bcd2ff2
Binary files /dev/null and b/data/elementary/themes/img/grad_h.png differ

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

Reply via email to