[gnome-system-monitor/wip/cdavis/libhandy: 2/3] interface: Use HdyViewSwitcher
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor/wip/cdavis/libhandy: 2/3] interface: Use HdyViewSwitcher
- Date: Fri, 5 Feb 2021 05:39:40 +0000 (UTC)
commit 9a231d9ce1960ea7fa8defb8bb5daca9b3c30ecd
Author: Christopher Davis <brainblasted disroot org>
Date: Thu Feb 4 18:47:26 2021 -0800
interface: Use HdyViewSwitcher
GNOME apps are encouraged to use HdyViewSwitcher instead
of GtkStackSwitcher.
data/icons/public/hicolor/symbolic/apps/speedometer-symbolic.svg | 8 ++++++++
data/interface.ui | 5 ++++-
2 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/data/icons/public/hicolor/symbolic/apps/speedometer-symbolic.svg
b/data/icons/public/hicolor/symbolic/apps/speedometer-symbolic.svg
new file mode 100644
index 00000000..3009a532
--- /dev/null
+++ b/data/icons/public/hicolor/symbolic/apps/speedometer-symbolic.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16.011" height="16">
+ <g fill="#2e3436">
+ <path d="M8.017 1.001c-2.049 0-4.098.78-5.656 2.338-3.116 3.116-3.116 8.197 0 11.313a1 1 0
101.414-1.414 5.984 5.984 0 010-8.485 5.984 5.984 0 018.485 0 5.984 5.984 0 010 8.485 1 1 0 101.414
1.414c3.116-3.116 3.116-8.197 0-11.313a7.975 7.975 0 00-5.657-2.338z"
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1;marker:none"
color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/>
+ <path d="M10.017 8.995a2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2 2 2 0 012 2z"/>
+ <path d="M4.01 4.238a.75.75 0 00-.524 1.289l3 3A.751.751 0 107.55 7.464l-3-3a.75.75 0
00-.54-.226zM7.517 1.995v2h1v-2z"
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1"
color="#000" font-weight="400" font-family="sans-serif" overflow="visible" fill-rule="evenodd"/>
+ <path d="M3.422 3.693l-.707.707 1.414 1.414.707-.707zM1.017 8.495v1h2v-1zM13.017
8.495v1h2v-1zM12.613 3.693L11.2 5.107l.707.707L13.32 4.4zM4.129 12.177l-1.414 1.414.707.707
1.414-1.414zM11.906 12.177l-.707.707 1.414 1.414.707-.707z"
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1"
color="#000" font-weight="400" font-family="sans-serif" overflow="visible" fill-rule="evenodd"/>
+ </g>
+</svg>
diff --git a/data/interface.ui b/data/interface.ui
index 67ff5669..aa7d849b 100644
--- a/data/interface.ui
+++ b/data/interface.ui
@@ -22,7 +22,7 @@
<class name="titlebar"/>
</style>
<child type="title">
- <object class="GtkStackSwitcher" id="stack_switcher">
+ <object class="HdyViewSwitcher" id="view_switcher">
<property name="visible">True</property>
<property name="stack">stack</property>
</object>
@@ -183,6 +183,7 @@
<packing>
<property name="name">processes</property>
<property name="title" translatable="yes">Processes</property>
+ <property name="icon-name">view-list-symbolic</property>
</packing>
</child>
<child>
@@ -521,6 +522,7 @@
<packing>
<property name="name">resources</property>
<property name="title" translatable="yes">Resources</property>
+ <property name="icon-name">speedometer-symbolic</property>
</packing>
</child>
<child>
@@ -548,6 +550,7 @@
<packing>
<property name="name">disks</property>
<property name="title" translatable="yes">File Systems</property>
+ <property name="icon-name">drive-harddisk-symbolic</property>
</packing>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]