🔧 Start thinking about application profiles

This commit is contained in:
Simon Schneegans
2023-01-11 05:50:39 +01:00
parent 8897d23086
commit 8fdc958cb9
3 changed files with 126 additions and 85 deletions
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
height="16px"
viewBox="0 0 16 16"
width="16px"
version="1.1"
id="svg880"
sodipodi:docname="bmw-select-app-symbolic.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs884" />
<sodipodi:namedview
id="namedview882"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="true"
inkscape:zoom="57.412587"
inkscape:cx="8.0905604"
inkscape:cy="8.0992692"
inkscape:window-width="1920"
inkscape:window-height="1163"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg880">
<inkscape:grid
type="xygrid"
id="grid975" />
</sodipodi:namedview>
<path
d="m 7,11 v 5 h 2 v -5 m 2,-2 h 5 V 7 H 11 M 9,5 V 0 H 7 V 5 M 5.0431967,7 H 0 v 2 h 4.9715524"
fill="#222222"
id="path878"
sodipodi:nodetypes="cccccccccccccccc" />
<path
id="path966"
d="M 14.708984 10 L 12.580078 10 C 12.074974 11.149358 11.149798 12.075226 10 12.580078 L 10 14.707031 C 12.252335 14.032781 14.034893 12.252099 14.708984 10 z " />
<path
id="path2645"
d="M 10 1.2929688 L 10 3.4199219 C 11.149798 3.9247737 12.074974 4.8506419 12.580078 6 L 14.708984 6 C 14.034893 3.7479009 12.252335 1.9672199 10 1.2929688 z " />
<path
id="path2107"
d="M 3.421875 10 L 1.2910156 10 C 1.965107 12.252099 3.7476652 14.032781 6 14.707031 L 6 12.580078 C 4.8504712 12.075345 3.9270579 11.148985 3.421875 10 z " />
<path
id="path2456"
d="M 6 1.2929688 C 3.7476652 1.9672199 1.965107 3.7479009 1.2910156 6 L 3.421875 6 C 3.9270579 4.8510155 4.8504712 3.9246556 6 3.4199219 L 6 1.2929688 z " />
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

+69 -78
View File
@@ -8,111 +8,102 @@ SPDX-License-Identifier: GPL-3.0-or-later
<interface domain="burn-my-windows">
<requires lib="gtk" version="4.0" />
<object class="GtkBox" id="profile-button">
<property name="halign">center</property>
<child>
<object class="GtkButton">
<property name="label">Default Profile</property>
<property name="valign">center</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="icon-name">edit-symbolic</property>
<property name="valign">center</property>
</object>
</child>
<style>
<class name="linked" />
</style>
</object>
<object class="GtkMenuButton" id="menu-button">
<property name="menu-model">main-menu</property>
<property name="icon-name">heart-filled-symbolic</property>
</object>
<object class="GtkBox" id="general-prefs">
<property name="orientation">vertical</property>
<property name="margin-top">60</property>
<property name="margin-bottom">20</property>
<child>
<object class="GtkImage">
<property name="valign">center</property>
<property name="icon-name">burn-my-windows-symbolic</property>
<property name="pixel_size">128</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Welcome to Burn-My-Windows!</property>
<property name="margin-top">8</property>
<property name="margin-bottom">6</property>
<style>
<class name="large-title" />
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">If you like this extension, recommend it to your friends :)</property>
<property name="margin-bottom">36</property>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="margin-bottom">20</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Also Add Effects to Dialogs</property>
<property name="activatable-widget">destroy-dialogs</property>
<object class="AdwEntryRow">
<property name="title" translatable="yes">Application</property>
<child>
<object class="GtkSwitch" id="destroy-dialogs">
<object class="GtkButton" id="reset-doom-animation-time">
<property name="icon-name">bmw-select-app-symbolic</property>
<property name="valign">center</property>
</object>
</child>
<child>
<object class="GtkButton" id="reset-destroy-dialogs">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
<class name="flat" />
</style>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Disable on Battery Power</property>
<property name="activatable-widget">disable-on-battery</property>
<child>
<object class="GtkSwitch" id="disable-on-battery">
<property name="valign">center</property>
<object class="AdwComboRow">
<property name="title" translatable="yes">Window Type</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>Normal Windows</item>
<item>Dialogs</item>
</items>
</object>
</child>
<child>
<object class="GtkButton" id="reset-disable-on-battery">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
<class name="flat" />
</style>
</object>
</child>
</property>
</object>
</child>
<child>
<object class="AdwActionRow" id="disable-on-power-save-row">
<property name="title" translatable="yes">Disable in Power-Save Mode</property>
<property name="activatable-widget">disable-on-power-save</property>
<child>
<object class="GtkSwitch" id="disable-on-power-save">
<property name="valign">center</property>
<object class="AdwComboRow">
<property name="title" translatable="yes">Power Mode</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>On Battery</item>
<item>Plugged In</item>
</items>
</object>
</child>
<child>
<object class="GtkButton" id="reset-disable-on-power-save">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
<class name="flat" />
</style>
</object>
</child>
</property>
</object>
</child>
<child>
<object class="AdwComboRow">
<property name="title" translatable="yes">Power Profile</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>Power Saver</item>
<item>Balanced</item>
<item>Performance</item>
<item>Power Saver or Balanced</item>
<item>Balanced or Performance</item>
</items>
</object>
</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="effects-group">
</object>
</child>