]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/settings.ui
Add a zoom factor setting.
[PrivacyBrowserPC.git] / src / settings.ui
index e7759ac198faa4c4bf4de49c9335f46a8ab146ac..35d51b893156082bc4ab133f64cc7feb23c079cd 100644 (file)
@@ -1,94 +1,68 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-android>.
+
+  Privacy Browser PC is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  Privacy Browser PC is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>. -->
+
 <ui version="4.0">
- <class>Settings</class>
- <widget class="QWidget" name="Settings">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>374</width>
-    <height>200</height>
-   </rect>
-  </property>
-  <layout class="QFormLayout">
-   <item row="0" column="0">
-    <widget class="QLabel" name="backgroundLabel">
-     <property name="text">
-      <string>Background color:</string>
-     </property>
+    <class>Settings</class>
+
+    <widget class="QWidget" name="Settings">
+        <property name="geometry">
+            <rect>
+                <x>0</x>
+                <y>0</y>
+                <width>374</width>
+                <height>200</height>
+            </rect>
+        </property>
+
+        <layout class="QFormLayout">
+            <item row="0" column="0">
+                <widget class="QLabel" name="zoomFactorLabel">
+                    <property name="text">
+                        <string>Zoom factor</string>
+                    </property>
+                </widget>
+            </item>
+
+            <item row="0" column="1">
+                <widget class="QDoubleSpinBox" name="kcfg_zoomFactor">
+                    <property name="toolTip">
+                        <string>Set the zoom factor between 0.25 and 5.00.</string>
+                    </property>
+
+                    <property name="whatsThis">
+                        <string>Set the zoom factor between 0.25 and 5.00.  The default is 1.00.</string>
+                    </property>
+
+                    <property name="minimum">
+                        <double>0.250000000000000</double>
+                    </property>
+
+                    <property name="maximum">
+                        <double>5.000000000000000</double>
+                    </property>
+                </widget>
+            </item>
+        </layout>
     </widget>
-   </item>
-   <item row="0" column="1">
-    <widget class="KColorButton" name="kcfg_colorBackground">
-     <property name="toolTip">
-      <string>Choose a new background color</string>
-     </property>
-     <property name="whatsThis">
-      <string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
-p, li { white-space: pre-wrap; }
-&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Change the &lt;span style=&quot; font-weight:600;&quot;&gt;background&lt;/span&gt; color by clicking here and choose the new &lt;span style=&quot; color:#ff0000;&quot;&gt;color&lt;/span&gt; in the &lt;span style=&quot; font-style:italic;&quot;&gt;color dialog&lt;/span&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
-     </property>
-     <property name="text">
-      <string/>
-     </property>
-    </widget>
-   </item>
-   <item row="1" column="0">
-    <widget class="QLabel" name="foregroundLabel">
-     <property name="text">
-      <string>Foreground color:</string>
-     </property>
-    </widget>
-   </item>
-   <item row="1" column="1">
-    <widget class="KColorButton" name="kcfg_colorForeground">
-     <property name="toolTip">
-      <string>Choose a new foreground color</string>
-     </property>
-     <property name="whatsThis">
-      <string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
-p, li { white-space: pre-wrap; }
-&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Change the &lt;span style=&quot; font-weight:600;&quot;&gt;foreground&lt;/span&gt; color by clicking here and choose the new &lt;span style=&quot; color:#ff0000;&quot;&gt;color&lt;/span&gt; in the &lt;span style=&quot; font-style:italic;&quot;&gt;color dialog&lt;/span&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
-     </property>
-     <property name="text">
-      <string/>
-     </property>
-    </widget>
-   </item>
-   <item row="2" column="0">
-    <widget class="QLabel" name="projectLabel">
-     <property name="text">
-      <string>Project age:</string>
-     </property>
-    </widget>
-   </item>
-   <item row="2" column="1">
-    <widget class="QSpinBox" name="kcfg_ageInDays">
-     <property name="toolTip">
-      <string>Set the project age (in days)</string>
-     </property>
-     <property name="whatsThis">
-      <string>Change the project age (in days) by choosing a new number of days.</string>
-     </property>
-     <property name="minimum">
-      <number>1</number>
-     </property>
-     <property name="value">
-      <number>2</number>
-     </property>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <customwidgets>
-  <customwidget>
-   <class>KColorButton</class>
-   <extends>QPushButton</extends>
-   <header>kcolorbutton.h</header>
-  </customwidget>
- </customwidgets>
- <resources/>
- <connections/>
+
+    <resources/>
+
+    <connections/>
 </ui>