Skip to content

Commit

Permalink
Window/CLI/Install/Schema: Remove remaining upstream removed options
Browse files Browse the repository at this point in the history
  • Loading branch information
Foldex committed Jul 29, 2023
1 parent c0f038e commit dc1674c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 67 deletions.
9 changes: 0 additions & 9 deletions data/io.github.Foldex.AdwSteamGtk.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@
</choices>
</key>

<!-- Top Bar -->
<key name="hide-bp-button-switch" type="b">
<default>false</default>
</key>

<key name="hide-nav-url-switch" type="b">
<default>false</default>
</key>

<!-- Prefs -->
<key name="prefs-autostart-update-check" type="b">
<default>false</default>
Expand Down
6 changes: 0 additions & 6 deletions src/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ def get_options(option_string):
"library_whats_new": not settings.get_boolean('hide-whats-new-switch'),

"login_qr": settings.get_string('login-qr-options'),

"top_bar_bp_button": not settings.get_boolean('hide-bp-button-switch'),
"top_bar_nav_url": not settings.get_boolean('hide-nav-url-switch'),
}

if option_string is None:
Expand All @@ -87,9 +84,6 @@ def get_options(option_string):
"library_whats_new": (True, False),

"login_qr": ("Show", "Hover Only", "Hide"),

"top_bar_bp_button": (True, False),
"top_bar_nav_url": (True, False),
}

if ":" not in option_string:
Expand Down
16 changes: 0 additions & 16 deletions src/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,6 @@ def gen_cmd_line(options, beta_support):
case _:
login_qr = ""


match options["top_bar_bp_button"]:
case False:
top_bar_bp_button = "-e topbar/hide_bp "
case _:
top_bar_bp_button = ""

match options["top_bar_nav_url"]:
case False:
top_bar_nav_url = "-e topbar/hide_url "
case _:
top_bar_nav_url = ""

cmd = (
f"{installer}"
f"{install_fonts}"
Expand All @@ -122,9 +109,6 @@ def gen_cmd_line(options, beta_support):

f"{login_qr}"

f"{top_bar_bp_button}"
f"{top_bar_nav_url}"

f"{custom_css}"
)

Expand Down
13 changes: 0 additions & 13 deletions src/pages/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ class AdwaitaSteamGtkWindow(Gtk.ApplicationWindow):
login_group = Gtk.Template.Child()
login_qr_options = Gtk.Template.Child()

top_bar_group = Gtk.Template.Child()
hide_bp_button_switch = Gtk.Template.Child()
hide_nav_url_switch = Gtk.Template.Child()

def __init__(self, **kwargs):
super().__init__(**kwargs)

Expand Down Expand Up @@ -130,9 +126,6 @@ def load_config(self):

self.select_from_config('login-qr-options', self.login_qr_options, self.opt_array["login_qr"])

self.select_from_config('hide-bp-button-switch', self.hide_bp_button_switch)
self.select_from_config('hide-nav-url-switch', self.hide_nav_url_switch)

def save_config(self):
self.config_from_select('color-theme-options', self.color_theme_options, self.opt_array["color_theme"])
self.config_from_select('no-rounded-corners-switch', self.no_rounded_corners_switch)
Expand All @@ -145,9 +138,6 @@ def save_config(self):

self.config_from_select('login-qr-options', self.login_qr_options, self.opt_array["login_qr"])

self.config_from_select('hide-bp-button-switch', self.hide_bp_button_switch)
self.config_from_select('hide-nav-url-switch', self.hide_nav_url_switch)


def get_selected_pref(self, widget, array=None):
match type := widget.get_name():
Expand Down Expand Up @@ -231,9 +221,6 @@ def install_theme(self, *args):
"library_whats_new": not self.get_selected_pref(self.hide_whats_new_switch),

"login_qr": self.get_selected_pref(self.login_qr_options, self.opt_array["login_qr"]),

"top_bar_bp_button": not self.get_selected_pref(self.hide_bp_button_switch),
"top_bar_nav_url": not self.get_selected_pref(self.hide_nav_url_switch),
}

(ret, msg) = install.run(options, self.beta_support)
Expand Down
23 changes: 0 additions & 23 deletions src/ui/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -97,29 +97,6 @@ template $AdwaitaSteamGtkWindow : ApplicationWindow {
}
}

Adw.PreferencesGroup top_bar_group {
title: _("Top Bar Options");
Adw.ActionRow {
title: _("Hide Big Picture Button");
tooltip-text: _("Disables display of the Big Picture button on the Top Bar.");
activatable-widget: hide_bp_button_switch;

Switch hide_bp_button_switch {
valign: center;
}
}
Adw.ActionRow {
title: _("Hide URL Bar");
tooltip-text: _("Disables display of the page URL on the Top Bar.");
activatable-widget: hide_nav_url_switch;

Switch hide_nav_url_switch {
valign: center;
}
}
}


};
};
}
Expand Down

0 comments on commit dc1674c

Please sign in to comment.