38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
|
|
From 3b08b2d8b99e2861ca80d35628cf02dfb86b97c7 Mon Sep 17 00:00:00 2001
|
|||
|
|
From: tangjie02 <tangjie02@kylinsec.com.cn>
|
|||
|
|
Date: Thu, 13 Oct 2022 20:34:42 +0800
|
|||
|
|
Subject: [PATCH] feature(button): Delete transition-duration for flat button.
|
|||
|
|
MIME-Version: 1.0
|
|||
|
|
Content-Type: text/plain; charset=UTF-8
|
|||
|
|
Content-Transfer-Encoding: 8bit
|
|||
|
|
|
|||
|
|
- 取消flat按钮的悬浮颜色延时,会有卡顿感觉。
|
|||
|
|
|
|||
|
|
Signed-off-by: tangjie02 <tangjie02@kylinsec.com.cn>
|
|||
|
|
---
|
|||
|
|
src/gtk3/widgets/_button.scss | 8 --------
|
|||
|
|
1 file changed, 8 deletions(-)
|
|||
|
|
|
|||
|
|
diff --git a/src/gtk3/widgets/_button.scss b/src/gtk3/widgets/_button.scss
|
|||
|
|
index 9928ed9..37a45d8 100644
|
|||
|
|
--- a/src/gtk3/widgets/_button.scss
|
|||
|
|
+++ b/src/gtk3/widgets/_button.scss
|
|||
|
|
@@ -101,14 +101,6 @@ $_dot_color: gtk("@theme_widget_foreground_active");
|
|||
|
|
@include button(normal);
|
|||
|
|
&.flat {
|
|||
|
|
@include button(undecorated);
|
|||
|
|
-
|
|||
|
|
- &:hover {
|
|||
|
|
- /* transition: $button_transition; */
|
|||
|
|
- transition-duration: 500ms;
|
|||
|
|
- &:active {
|
|||
|
|
- /* transition: $button_transition; */
|
|||
|
|
- }
|
|||
|
|
- }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
&:hover {
|
|||
|
|
--
|
|||
|
|
2.33.0
|
|||
|
|
|