mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Overhaul filters to use gschema (NOT FINISHED)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ template $WarehouseWindow: Adw.ApplicationWindow {
|
||||
}
|
||||
|
||||
[start]
|
||||
ToggleButton filter_button {
|
||||
Button filter_button {
|
||||
icon-name: "funnel-symbolic";
|
||||
tooltip-text: _("Filter List");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user