summaryrefslogtreecommitdiff
path: root/data/elementary/themes
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-02-15 12:58:35 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-02-15 12:58:35 +0000
commit0128153e7c2bf4e9aeaf86b985bba5b740267395 (patch)
treea4ea3609d02f50187bcd2a9c39b4039ba800237b /data/elementary/themes
parentbe70ea8a525a8c3108e1bef2be8b0bff582eaef2 (diff)
TH - win shadow - scale properly too
Diffstat (limited to 'data/elementary/themes')
-rw-r--r--data/elementary/themes/edc/comp.edc2
-rw-r--r--data/elementary/themes/edc/elm/border.edc2
-rw-r--r--data/elementary/themes/macros.edc22
3 files changed, 16 insertions, 10 deletions
diff --git a/data/elementary/themes/edc/comp.edc b/data/elementary/themes/edc/comp.edc
index b5d21768da..5c51e88806 100644
--- a/data/elementary/themes/edc/comp.edc
+++ b/data/elementary/themes/edc/comp.edc
@@ -223,6 +223,7 @@ group { name: "e/comp/frame/default";
223 } 223 }
224 part { name: "shadow"; mouse_events: 0; 224 part { name: "shadow"; mouse_events: 0;
225 clip_to: "clipper"; 225 clip_to: "clipper";
226 scale: 1;
226 description { state: "default" 0.0; 227 description { state: "default" 0.0;
227 rel.to: "e.swallow.content"; 228 rel.to: "e.swallow.content";
228 WIN_SHADOW; 229 WIN_SHADOW;
@@ -484,6 +485,7 @@ group { name: "e/comp/frame/menu";
484 images.image: "win_menu_shadow.png" COMP; 485 images.image: "win_menu_shadow.png" COMP;
485 parts { 486 parts {
486 part { name: "shadow"; 487 part { name: "shadow";
488 scale: 1;
487 description { state: "default" 0.0; 489 description { state: "default" 0.0;
488 WIN_MENU_SHADOW; 490 WIN_MENU_SHADOW;
489 } 491 }
diff --git a/data/elementary/themes/edc/elm/border.edc b/data/elementary/themes/edc/elm/border.edc
index aec91c66bb..e0943b3b95 100644
--- a/data/elementary/themes/edc/elm/border.edc
+++ b/data/elementary/themes/edc/elm/border.edc
@@ -39,6 +39,7 @@ group { name: "elm/border/base/default";
39 } 39 }
40 /* shadow spacer and clipper */ 40 /* shadow spacer and clipper */
41 spacer { "shadow_spacer"; 41 spacer { "shadow_spacer";
42 scale: 1;
42 desc { "default"; 43 desc { "default";
43 WIN_SHADOW_SPACER; 44 WIN_SHADOW_SPACER;
44 } 45 }
@@ -48,6 +49,7 @@ group { name: "elm/border/base/default";
48 } 49 }
49 } 50 }
50 image { "shadow"; nomouse; 51 image { "shadow"; nomouse;
52 scale: 1;
51 desc { "default"; 53 desc { "default";
52 rel.to: "shadow_spacer"; 54 rel.to: "shadow_spacer";
53 WIN_SHADOW; 55 WIN_SHADOW;
diff --git a/data/elementary/themes/macros.edc b/data/elementary/themes/macros.edc
index 2da66d46df..1d2444aeb6 100644
--- a/data/elementary/themes/macros.edc
+++ b/data/elementary/themes/macros.edc
@@ -28,41 +28,43 @@
28 28
29#define WIN_SHADOW \ 29#define WIN_SHADOW \
30 image.normal: "win_shadow.png"; \ 30 image.normal: "win_shadow.png"; \
31 image.border: 44 44 44 44; \ 31 image.border: 32 32 32 32; \
32 image.border_scale: 1; \
33 image.border_scale_by: 1.0; \
32 image.middle: 0; \ 34 image.middle: 0; \
33 rel1.offset: -21 -14; \ 35 rel1.offset: -21 -14; \
34 rel2.offset: 20 27; \ 36 rel2.offset: 20 27; \
35 fill.smooth: 0 37 offscale
36#define WIN_SHADOW_SMALL \ 38#define WIN_SHADOW_SMALL \
37 image.normal: "win_shadow.png"; \ 39 image.normal: "win_shadow.png"; \
38 image.border: 44 44 44 44; \ 40 image.border: 32 32 32 32; \
39 image.border_scale: 1; \ 41 image.border_scale: 1; \
40 image.border_scale_by: 0.5; \ 42 image.border_scale_by: 0.5; \
41 image.middle: 0; \ 43 image.middle: 0; \
42 rel1.offset: -10 -7; \ 44 rel1.offset: -10 -7; \
43 rel2.offset: 9 10; \ 45 rel2.offset: 9 10; \
44 fill.smooth: 0; \
45 offscale 46 offscale
46#define WIN_SHADOW_SPACER \ 47#define WIN_SHADOW_SPACER \
47 rel1.offset: 21 14; \ 48 rel1.offset: 21 14; \
48 rel2.offset: -21 -28 49 rel2.offset: -21 -28; \
50 offscale
49#define WIN_MENU_SHADOW \ 51#define WIN_MENU_SHADOW \
50 image.normal: "win_menu_shadow.png"; \ 52 image.normal: "win_menu_shadow.png"; \
51 image.border: 44 44 16 29; \ 53 image.border: 32 32 32 32; \
54 image.border_scale: 1; \
55 image.border_scale_by: 1.0; \
52 image.middle: 0; \ 56 image.middle: 0; \
53 rel1.offset: -21 -14; \ 57 rel1.offset: -21 -14; \
54 rel2.offset: 20 27; \ 58 rel2.offset: 20 27; \
55 fill.smooth: 0 59 offscale
56
57#define WIN_SHADOW_ANGLE_SMALL(_img) \ 60#define WIN_SHADOW_ANGLE_SMALL(_img) \
58 image.normal: _img; \ 61 image.normal: _img; \
59 image.border: 22 22 16 30; \ 62 image.border: 32 32 32 32; \
60 image.border_scale: 1; \ 63 image.border_scale: 1; \
61 image.border_scale_by: 0.5; \ 64 image.border_scale_by: 0.5; \
62 image.middle: 0; \ 65 image.middle: 0; \
63 rel1.offset: -10 -7; \ 66 rel1.offset: -10 -7; \
64 rel2.offset: 9 13; \ 67 rel2.offset: 9 13; \
65 fill.smooth: 0; \
66 offscale 68 offscale
67 69
68#define IMAGE_RING(x, sz) \ 70#define IMAGE_RING(x, sz) \