File: SettingsButton.ui

package info (click to toggle)
metadata-cleaner 2.4.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,808 kB
  • sloc: python: 1,682; xml: 343; makefile: 3
file content (54 lines) | stat: -rw-r--r-- 2,254 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX-FileCopyrightText: 2021 Romain Vigier <contact AT romainvigier.fr>
SPDX-License-Identifier: GPL-3.0-or-later
-->
<interface>
  <template class="SettingsButton" parent="GtkMenuButton">
    <property name="direction">up</property>
    <property name="tooltip-text" translatable="yes">Cleaning settings</property>
    <property name="icon-name">metadatacleaner-settings-symbolic</property>
    <property name="popover">settings-popover</property>
    <property name="valign">center</property>
    <style>
      <class name="circular"/>
    </style>
  </template>
  <object class="GtkPopover" id="settings-popover">
    <property name="margin-start">6</property>
    <property name="margin-end">6</property>
    <property name="margin-top">6</property>
    <property name="margin-bottom">6</property>
    <child>
      <object class="GtkListBox">
        <property name="selection-mode">none</property>
        <child>
          <object class="AdwActionRow">
            <property name="title" translatable="yes">Lightweight Cleaning</property>
            <property name="activatable-widget">_lightweight_switch</property>
            <child>
              <object class="GtkButton">
                <property name="icon-name">metadatacleaner-help-symbolic</property>
                <property name="tooltip-text" translatable="yes">Learn more about the lightweight cleaning</property>
                <property name="valign">center</property>
                <property name="action-name">app.help</property>
                <property name="action-target">"/usage#lightweight-cleaning"</property>
                <style>
                  <class name="circular"/>
                  <class name="flat"/>
                </style>
              </object>
            </child>
            <child type="suffix">
              <object class="GtkSwitch" id="_lightweight_switch">
                <property name="valign">center</property>
                <property name="margin-start">48</property>
                <property name="action-name">app.lightweight-cleaning</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>