From 2796c93d868fe0be54024bc00d7ffae77deec104 Mon Sep 17 00:00:00 2001 From: heliguy4599 Date: Sun, 8 Oct 2023 14:26:41 -0400 Subject: [PATCH] Remove EOL and Install Type bubble tags --- src/orphans_window.py | 2 +- src/remotes.py | 2 +- src/style.css | 21 --------------------- src/window.py | 8 ++++---- 4 files changed, 6 insertions(+), 27 deletions(-) diff --git a/src/orphans_window.py b/src/orphans_window.py index 6a8be3d..ecf87cd 100644 --- a/src/orphans_window.py +++ b/src/orphans_window.py @@ -119,7 +119,7 @@ class OrphansWindow(Adw.Window): remote_row = Adw.ActionRow(title=self.host_remotes[i][1]) label = Gtk.Label(label=_("{} wide").format(self.host_remotes[i][7]), valign=Gtk.Align.CENTER) remote_select = Gtk.CheckButton() - label.add_css_class("installType") + label.add_css_class("subtitle") remote_select_buttons.append(remote_select) remote_select.connect("toggled", remote_select_handler) remote_row.set_activatable_widget(remote_select) diff --git a/src/remotes.py b/src/remotes.py index e95343a..01dd7e8 100644 --- a/src/remotes.py +++ b/src/remotes.py @@ -78,7 +78,7 @@ class RemotesWindow(Adw.Window): remote_row.set_title(name) self.remotes_list.append(remote_row) label = Gtk.Label(label=("{} wide").format(install_type), valign=Gtk.Align.CENTER) - label.add_css_class("installType") + label.add_css_class("subtitle") remote_row.add_suffix(label) copy_button = Gtk.Button(icon_name="edit-copy-symbolic", valign=Gtk.Align.CENTER, tooltip_text=_("Copy remote name")) copy_button.add_css_class("flat") diff --git a/src/style.css b/src/style.css index 9e4c064..e69de29 100644 --- a/src/style.css +++ b/src/style.css @@ -1,21 +0,0 @@ -.eolText { - background-color: #ff0000b7; - color: #fafafa; - border-radius: 1000px; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - font-weight: bold; -} - -.installType { - background-color: #0077ffd0; - color: #fafafa; - border-radius: 1000px; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - font-weight: bold; - } \ No newline at end of file diff --git a/src/window.py b/src/window.py index a834cfa..90b68fa 100644 --- a/src/window.py +++ b/src/window.py @@ -287,13 +287,13 @@ class WarehouseWindow(Adw.ApplicationWindow): flatpak_row.set_subtitle(app_id) if "eol" in self.host_flatpaks[index][12]: - eol_app_label = Gtk.Label(label=_("Flatpak EOL"), valign=Gtk.Align.CENTER, tooltip_text=_("This Flatpak has reached its End of Life and will not receive any security updates")) - eol_app_label.add_css_class("eolText") + eol_app_label = Gtk.Label(label=_("EOL"), valign=Gtk.Align.CENTER, tooltip_text=_("This Flatpak has reached its End of Life and will not receive any security updates")) + eol_app_label.add_css_class("error") flatpak_row.add_suffix(eol_app_label) if self.host_flatpaks[index][13] in self.eol_list: - eol_runtime_label = Gtk.Label(label=_("Runtime EOL"), valign=Gtk.Align.CENTER, tooltip_text=_("The runtime used by this app has reached its End of Life and will not receive any security updates")) - eol_runtime_label.add_css_class("eolText") + eol_runtime_label = Gtk.Label(label=_("EOL"), valign=Gtk.Align.CENTER, tooltip_text=_("The runtime used by this app has reached its End of Life and will not receive any security updates")) + eol_runtime_label.add_css_class("error") flatpak_row.add_suffix(eol_runtime_label) properties_button = Gtk.Button(icon_name="info-symbolic", valign=Gtk.Align.CENTER, tooltip_text=_("View Properties"))