raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a651cbe1a7430f049107cccae9d9e8c2a3cce034

commit a651cbe1a7430f049107cccae9d9e8c2a3cce034
Author: Carsten Haitzler <ras...@rasterman.com>
Date:   Fri Jul 2 13:25:42 2021 +0100

    elm theme - support fingerprint status in desklock
---
 data/elementary/themes/colorclasses.edc |   4 ++
 data/elementary/themes/edc/desklock.edc | 105 +++++++++++++++++++++++++++++++-
 2 files changed, 107 insertions(+), 2 deletions(-)

diff --git a/data/elementary/themes/colorclasses.edc 
b/data/elementary/themes/colorclasses.edc
index 87cf853c5b..82c3374c0d 100644
--- a/data/elementary/themes/colorclasses.edc
+++ b/data/elementary/themes/colorclasses.edc
@@ -279,6 +279,10 @@ color_classes {
       color: 255 255 255 255; }
    color_class { name: "/fg/normal/desklock/selection";
       color:  51 153 255 255; }
+   color_class { name: "/fg/normal/desklock/fprint/success";
+      color: 153 255  51 255; }
+   color_class { name: "/fg/normal/desklock/fprint/fail";
+      color: 255 153  51 255; }
 ///////////////////////////////////////////////////////////////////////////////
    color_class { name: "/bg/normal/hoversel/button";
       color:  96  96  96 255; }
diff --git a/data/elementary/themes/edc/desklock.edc 
b/data/elementary/themes/edc/desklock.edc
index 54cf04f277..b0e40b9449 100644
--- a/data/elementary/themes/edc/desklock.edc
+++ b/data/elementary/themes/edc/desklock.edc
@@ -174,11 +174,43 @@ group { name: "e/desklock/login_box";
             visible: 1;
          }
       }
+      part { name: "fprint";
+         scale: 1;
+         description { state: "default" 0.0;
+            image.normal: "i-fingerprint";
+            min: 40 40;
+            max: 40 40;
+            rel.to_x: "clipper";
+            rel.to_y: "e.text.password";
+            rel1.relative: 0.0 1.0;
+            align: 0.5 0.0;
+            color: 255 255 255 0; // no cc
+            color_class: "/fg/normal/desklock/fprint/normal";
+            visible: 0;
+         }
+         description { state: "active" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255; // no cc
+            visible: 1;
+         }
+         description { state: "auth-success" 0.0;
+            inherit: "default" 0.0;
+            color_class: "/fg/normal/desklock/fprint/success";
+            color: 255 255 255 255; // no cc
+            visible: 1;
+         }
+         description { state: "auth-fail" 0.0;
+            inherit: "default" 0.0;
+            color_class: "/fg/normal/desklock/fprint/fail";
+            color: 255 255 255 255; // no cc
+            visible: 1;
+         }
+      }
       part { name: "busy_area"; type: SPACER;
          scale: 1;
          description { state: "default" 0.0;
-            min: 20 20;
-            max: 160 160;
+            min: 40 40;
+            max: 40 40;
             rel.to: "clipper";
             rel1.relative: 0.0 0.5;
             align: 0.5 0.0;
@@ -225,6 +257,75 @@ group { name: "e/desklock/login_box";
          action: STATE_SET "default" 0.0;
          target: "logo_clip";
       }
+
+      program { signal: "e,fprint,unknown"; source: "e";
+         action: STATE_SET "active" 0.0;
+         transition: SINUSOIDAL 0.5 USE_DURATION_FACTOR 1;
+         target: "fprint";
+      }
+      program { signal: "e,fprint,press"; source: "e";
+         action: STATE_SET "active" 0.0;
+         transition: SINUSOIDAL 0.5 USE_DURATION_FACTOR 1;
+         target: "fprint";
+      }
+      program { signal: "e,fprint,swipe"; source: "e";
+         action: STATE_SET "active" 0.0;
+         transition: SINUSOIDAL 0.5 USE_DURATION_FACTOR 1;
+         target: "fprint";
+      }
+
+      program { signal: "e,fprint,auth,success"; source: "e";
+         action: STATE_SET "auth-success" 0.0;
+         transition: SINUSOIDAL 0.2 USE_DURATION_FACTOR 1;
+         target: "fprint";
+      }
+      program { signal: "e,fprint,auth,fail"; source: "e";
+         action: STATE_SET "auth-fail" 0.0;
+         transition: SINUSOIDAL 0.2 USE_DURATION_FACTOR 1;
+         target: "fprint";
+         after: "fprint-reset";
+      }
+      program { signal: "e,fprint,auth,short"; source: "e";
+         action: STATE_SET "auth-fail" 0.0;
+         transition: SINUSOIDAL 0.2 USE_DURATION_FACTOR 1;
+         target: "fprint";
+         after: "fprint-reset";
+      }
+      program { signal: "e,fprint,auth,nocenter"; source: "e";
+         action: STATE_SET "auth-fail" 0.0;
+         transition: SINUSOIDAL 0.2 USE_DURATION_FACTOR 1;
+         target: "fprint";
+         after: "fprint-reset";
+      }
+      program { signal: "e,fprint,auth,removeretry"; source: "e";
+         action: STATE_SET "auth-fail" 0.0;
+         transition: SINUSOIDAL 0.2 USE_DURATION_FACTOR 1;
+         target: "fprint";
+         after: "fprint-reset";
+      }
+      program { signal: "e,fprint,auth,retry"; source: "e";
+         action: STATE_SET "auth-fail" 0.0;
+         transition: SINUSOIDAL 0.2 USE_DURATION_FACTOR 1;
+         target: "fprint";
+         after: "fprint-reset";
+      }
+      program { signal: "e,fprint,auth,disconnect"; source: "e";
+         action: STATE_SET "default" 0.0;
+         transition: SINUSOIDAL 0.2 USE_DURATION_FACTOR 1;
+         target: "fprint";
+      }
+      program { signal: "e,fprint,auth,error"; source: "e";
+         action: STATE_SET "auth-fail" 0.0;
+         transition: SINUSOIDAL 0.2 USE_DURATION_FACTOR 1;
+         target: "fprint";
+         after: "fprint-reset";
+      }
+      program { name: "fprint-reset";
+         action: STATE_SET "active" 0.0;
+         transition: SINUSOIDAL 0.5 USE_DURATION_FACTOR 1;
+         target: "fprint";
+         in: 0.5 0.0;
+      }
    }
 }
 

-- 


Reply via email to