malcontent-control: Move the app restrictions into a separate dialogue
Rather than having a scrollable listbox within a scrollable list of widgets, move the listbox out to a separate dialogue. This involves separating out all the code to query the apps, to get and to set the app filter, from `MctUserControls` out into the new `MctRestrictApplicationsSelector`. Most of it is unchanged, aside from its interaction with the filter: the filter is now provided to the widget by the calling code, rather than being queried by the widget itself. The widget’s status can be queried into an `MctAppFilterBuilder`, rather than being used to set the app filter directly. This commit redesigns the appearance of the relevant widgets in the main window so that they follow the new list-box-like visual design. A following commit will apply similar changes to the other widgest in the main screen. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
93d18ed2a9
commit
bffab0942f
12 changed files with 1550 additions and 529 deletions
|
@ -1,10 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright © 2019 Endless Mobile, Inc. -->
|
||||
<!-- Copyright © 2019 2020 Endless Mobile, Inc. -->
|
||||
<gresources>
|
||||
<gresource prefix="/org/freedesktop/MalcontentControl/ui">
|
||||
<file>carousel.css</file>
|
||||
<file preprocess="xml-stripblanks">carousel.ui</file>
|
||||
<file preprocess="xml-stripblanks">main.ui</file>
|
||||
<file preprocess="xml-stripblanks">restrict-applications-dialog.ui</file>
|
||||
<file preprocess="xml-stripblanks">restrict-applications-selector.ui</file>
|
||||
<file preprocess="xml-stripblanks">user-controls.ui</file>
|
||||
<file preprocess="xml-stripblanks">user-selector.ui</file>
|
||||
</gresource>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue