kiran-gtk-theme/0001-feature-button-Delete-transition-duration-for-flat-b.patch
tangjie02 1a8fbaaaf3 feature(button): Delete transition-duration for flat button
Signed-off-by: tangjie02 <tangjie02@kylinsec.com.cn>
2022-10-13 20:55:22 +08:00

38 lines
1.1 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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