account: Don't draw the avatar button background

Resolves: RHEL-83889
This commit is contained in:
nmontero 2025-12-18 13:59:18 +01:00
parent 85fa06331e
commit f2797b7ac4
3 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,48 @@
diff --git a/gnome-initial-setup/pages/account/gis-account-page-local.ui b/gnome-initial-setup/pages/account/gis-account-page-local.ui
index 433e0490..9993e7e9 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-local.ui
+++ b/gnome-initial-setup/pages/account/gis-account-page-local.ui
@@ -27,8 +27,10 @@
<object class="GtkMenuButton" id="avatar_button">
<property name="tooltip-text" translatable="yes">Change Avatar</property>
<property name="icon-name">document-edit-symbolic</property>
+ <property name="has-frame">False</property>
<style>
<class name="circular"/>
+ <class name="avatar-button"/>
</style>
</object>
</child>
@@ -50,6 +52,7 @@
<style>
<class name="circular"/>
<class name="destructive-image-button"/>
+ <class name="no-avatar-background"/>
</style>
</object>
</child>
diff --git a/gnome-initial-setup/pages/account/gis-account-page.css b/gnome-initial-setup/pages/account/gis-account-page.css
index 59d2a3cc..77dbdeb7 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.css
+++ b/gnome-initial-setup/pages/account/gis-account-page.css
@@ -8,3 +8,20 @@
.destructive-image-button {
color: @destructive_color;
}
+
+/* Avatar button on account page should never draw a background */
+.no-avatar-background {
+ background: none;
+ background-color: transparent;
+ background-image: none;
+ box-shadow: none;
+ border: none;
+}
+
+.avatar-button > button {
+ background: none;
+ background-color: transparent;
+ background-image: none;
+ box-shadow: none;
+ border: none;
+}

View File

@ -25,7 +25,8 @@ Source1: vendor.conf
Source2: gnome-initial-setup.sysusers.conf
# Downstream branding
Patch: 0001-RHEL10-style-illustrations.patch
Patch0: 0001-RHEL10-style-illustrations.patch
Patch1: 0002-account-page-disable-avatar-button-background.patch
BuildRequires: desktop-file-utils
BuildRequires: gcc

5
rpminspect.yaml Normal file
View File

@ -0,0 +1,5 @@
---
desktop:
ignore:
- /usr/share/applications/gnome-initial-setup.desktop