Skip to content

Commit

Permalink
Don't use symbolic banner dots, override some more css for them.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Jun 11, 2024
1 parent 7726e24 commit cbdf5bf
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
12 changes: 8 additions & 4 deletions usr/lib/linuxmint/mintinstall/mintinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -1480,15 +1480,19 @@ def load_banner(self):

stack.add_named(flowbox, str(len(stack.get_children())))

icon = Gtk.Image.new_from_icon_name("media-record-symbolic", Gtk.IconSize.MENU)
icon = Gtk.Image.new_from_icon_name("mintinstall-banner-dot", Gtk.IconSize.MENU)
icon.set_pixel_size(5)

button_class_override = """
#BannerDotOverlay {
background-color: rgba(0, 0, 0, 0);
background-image: none;
border-color: rgba(0, 0, 0, 0);
min-height: 12px;
min-width: 22px;
-gtk-icon-shadow: none;
-gtk-icon-effect: none;
box-shadow: none;
}
"""
provider = Gtk.CssProvider()
Expand Down Expand Up @@ -1533,11 +1537,11 @@ def on_slideshow_timeout(self, stack, dot_box):
def update_dot_buttons(self, dot_box, current_index):
for i, button in enumerate(dot_box.get_children()):
if i == current_index: #Bigger do if current slide
icon = Gtk.Image.new_from_icon_name("media-record-symbolic", Gtk.IconSize.MENU)
icon.set_pixel_size(10)
icon = Gtk.Image.new_from_icon_name("mintinstall-banner-dot", Gtk.IconSize.MENU)
icon.set_pixel_size(10)
button.set_image(icon)
else:
icon = Gtk.Image.new_from_icon_name("media-record-symbolic", Gtk.IconSize.MENU)
icon = Gtk.Image.new_from_icon_name("mintinstall-banner-dot", Gtk.IconSize.MENU)
icon.set_pixel_size(5)
button.set_image(icon)

Expand Down
44 changes: 44 additions & 0 deletions usr/share/icons/hicolor/scalable/status/mintinstall-banner-dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cbdf5bf

Please sign in to comment.