Skip to content

Commit

Permalink
Merge 241c3dd into 8a6d8b3
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Feb 23, 2022
2 parents 8a6d8b3 + 241c3dd commit bf1f018
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions package/yast2-registration.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 23 11:34:03 UTC 2022 - David Diaz <dgonzalez@suse.com>

- Makes the addon selector more "themeable" (bsc#1196362).
- 4.4.16

-------------------------------------------------------------------
Mon Jan 31 11:36:53 UTC 2022 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-registration.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-registration
Version: 4.4.15
Version: 4.4.16
Release: 0
Summary: YaST2 - Registration Module
License: GPL-2.0-only
Expand Down
5 changes: 2 additions & 3 deletions src/lib/registration/ui/addon_selection_base_dialog.rb
Expand Up @@ -177,14 +177,13 @@ def richtext_checkbox(id:, label:, status:)

image = (installation ? "inst:" : "normal:") +
selected + ":" + (enabled ? "enabled" : "disabled")
color = installation ? "white" : "black"

check = "<img src='#{IMAGE_DIR}/#{IMAGES[image]}'></img>"
widget = "#{check} #{label}"
enabled_widget = if enabled
"<a href='#{id}' style='text-decoration:none; color:#{color}'>#{widget}</a>"
"<a href='#{id}' class='enabled-item'>#{widget}</a>"
else
"<span style='color:grey'>#{widget}</span>"
"<span class='disabled-item'>#{widget}</span>"
end
"<p>#{INDENT}#{enabled_widget}</p>"
end
Expand Down

0 comments on commit bf1f018

Please sign in to comment.