From 054d3fec1627a9ee8d84d636d578aa68d3494d19 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 21 Aug 2022 00:10:59 +0200 Subject: Fix encryption button update and reduce its required GTK version MenuButton.activate only exists since 4.4 --- main/data/theme.css | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'main/data/theme.css') diff --git a/main/data/theme.css b/main/data/theme.css index 782f980e..94cf1da5 100644 --- a/main/data/theme.css +++ b/main/data/theme.css @@ -242,7 +242,7 @@ box.dino-input-warning label { /*Chat input error*/ -box.dino-input-error frame border { +box.dino-input-error frame { border-color: @error_color; } @@ -251,19 +251,20 @@ box.dino-input-error frame separator { border: none; } -box.dino-input-error label { +box.dino-input-error .chat-input-status { color: @error_color; } @keyframes input-error-highlight { - 0% { color: mix(@error_color, @theme_fg_color, 0.3);} - 30% { color: @error_color; text-shadow: 0px 0px 2px alpha(@error_color, 0.4); } - 100% { color: mix(@error_color, @theme_fg_color, 0.3); } + 0% { transform: translate(0,0); } + 25% { transform: translate(-10px,0); } + 75% { transform: translate(10px,0); } + 100% { transform: translate(0,0); } } -box.dino-input-error label.input-status-highlight-once { - animation-duration: 1s; - animation-timing-function: linear; +box.dino-input-error .chat-input-status.input-status-highlight-once { + animation-duration: 0.5s; + animation-timing-function: ease-in-out; animation-iteration-count: 1; animation-name: input-error-highlight; } -- cgit v1.2.3-54-g00ecf