From 33657bf6b7ca10b3a6e8f7635066ca7955eaf1e8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 11 Jun 2020 14:12:59 +0100 Subject: [PATCH] Image corners style --- epicyon-profile.css | 5 +++-- theme.py | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 933697c2d..b39d515cc 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -39,6 +39,7 @@ --button-height: 10px; --button-height-padding-mobile: 20px; --button-height-padding: 10px; + --image-corners: 10%, --gallery-border: #ccc; --gallery-hover: #777; --gallery-text-color: #ccc; @@ -723,7 +724,7 @@ div.gallery img { width: 5%; padding: 0px 7px; margin-right: 20px; - border-radius: 10%; + border-radius: var(--image-corners); } .container img.emojisearch { width: 10%; @@ -1074,7 +1075,7 @@ div.gallery img { width: 15%; padding: 0px 7px; margin-right: 20px; - border-radius: 10%; + border-radius: var(--image-corners); } .container img.emojisearch { width: 12%; diff --git a/theme.py b/theme.py index 690d4dd4e..effa6eb79 100644 --- a/theme.py +++ b/theme.py @@ -270,6 +270,7 @@ def setThemeStarlight(baseDir: str): "cw-glow-color5": "#a3d5f0", "cw-background": "black", "timeline-border-radius": "20px", + "image-corners": "2%" "*font-family": "'bgrove'", "*src": "url('fonts/bgrove.ttf') format('truetype')" } @@ -454,7 +455,8 @@ def setThemeHacker(baseDir: str): "event-foreground": "black", "title-text": "black", "title-background": "darkgreen", - "gallery-text-color": "green" + "gallery-text-color": "green", + "image-corners": "0%" } setThemeFromDict(baseDir, 'hacker', themeParams)