Projects
home:Eustace:branches:Eulaceura:Factory
kiran-gtk-theme
_service:obs_scm:0000-fix-gnomesoftware-Fix-sty...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0000-fix-gnomesoftware-Fix-style-error-of-install-and-lau.patch of Package kiran-gtk-theme
From aee8944c8ecc751800b16d581a87c63dfc525ef1 Mon Sep 17 00:00:00 2001 From: tangjie02 <tangjie02@kylinsec.com.cn> Date: Sat, 23 Mar 2024 11:47:29 +0800 Subject: [PATCH] fix(gnomesoftware): Fix style error of install and launch button on gnome-software. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复应用商店应用详情页面安装和启动按钮样式错误问题,主要按钮统一改成蓝色。 Signed-off-by: tangjie02 <tangjie02@kylinsec.com.cn> --- src/gtk3/widgets/_button.scss | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/gtk3/widgets/_button.scss b/src/gtk3/widgets/_button.scss index caff222..9a1e3b9 100644 --- a/src/gtk3/widgets/_button.scss +++ b/src/gtk3/widgets/_button.scss @@ -211,34 +211,29 @@ button { } // Suggested and Destructive Action buttons - @each $b_type, $button_color in (suggested-action, gtk("@theme_widget_foreground_normal")), - (destructive-action, gtk("@theme_default_error")) { + @each $b_type, $button_color in (suggested-action, gtk("@theme_selected_bg_color")), + (destructive-action, gtk("@theme_widget_background_normal")) { &.#{$b_type}, &.#{$b_type}.osd & { @include button(normal); background-color: $button_color; - color: gtk("@theme_widget_foreground_active"); + color: gtk("@theme_widget_foreground_normal"); &.flat { @include button(undecorated); - color: $button_color; } &:hover { @include button(hover); - color: white; //! FIXME - No hardcoded colors. - background-color: $button_color; + background-color: gtkmix($button_color, gtk("@theme_widget_foreground_normal"), 0.1); } &:active, - &:checked, - &:focus { + &:checked { @include button(active); - background-color: $button_color; - color: white; + background-color: gtkmix($button_color, gtk("@theme_widget_foreground_normal"), 0.2); } &:backdrop, &.flat:backdrop { @include button(backdrop); background-color: $button_color; - color: white; &:disabled { @include button(backdrop-insensitive); } @@ -247,7 +242,6 @@ button { &.flat:disabled, &.flat:backdrop:disabled { @include button(undecorated); - color: gtkalpha($button_color, 0.8); } &:disabled { @include button(insensitive); -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2