Overhaul filters to use gschema (NOT FINISHED)

This commit is contained in:
Heliguy
2024-02-05 01:11:38 -05:00
parent 5371dc90a2
commit 52a9915d53
5 changed files with 68 additions and 117 deletions

View File

@@ -14,4 +14,18 @@
<default>false</default>
</key>
</schema>
<schema id="io.github.flattool.Warehouse.filter" path="/io/github/flattool/Warehouse/filter/">
<key name="show-apps" type="b">
<default>true</default>
</key>
<key name="show-runtimes" type="b">
<default>false</default>
</key>
<key name="ids-list" type="s">
<default>""</default>
</key>
<key name="remotes-list" type="s">
<default>""</default>
</key>
</schema>
</schemalist>

View File

@@ -81,13 +81,13 @@ template $FilterWindow: Adw.Window {
}
}
// Button remove_filters_button {
// visible: false;
// margin-bottom: 18;
// halign: center;
// label: _("Clear Filters");
// styles ["pill"]
// }
Button reset_button {
visible: true;
margin-bottom: 18;
halign: center;
label: _("Reset Filters");
styles ["pill"]
}
}
}
}

View File

@@ -19,7 +19,7 @@ template $WarehouseWindow: Adw.ApplicationWindow {
}
[start]
ToggleButton filter_button {
Button filter_button {
icon-name: "funnel-symbolic";
tooltip-text: _("Filter List");
}