First Commit
This commit is contained in:
21
resources/expandable_bar_item.ui
Normal file
21
resources/expandable_bar_item.ui
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<interface>
|
||||
<template class="JBExpandableBarItem" parent="GtkBox">
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<property name="spacing">4</property>
|
||||
<property name="css-classes">expandable-bar-item</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="main_button">
|
||||
<property name="css-classes">expandable-main</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkRevealer" id="revealer">
|
||||
<property name="transition-type">GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT</property>
|
||||
<property name="transition-duration">500</property>
|
||||
<property name="reveal-child">false</property>
|
||||
<property name="css-classes">expandable-revealer</property>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
15
resources/icon.ui
Normal file
15
resources/icon.ui
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<interface>
|
||||
<template class="JBIcon" parent="GtkBox">
|
||||
<child>
|
||||
<object class="GtkImage" id="image">
|
||||
<property name="css-classes">icon</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label">
|
||||
<property name="css-classes">icon</property>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
37
resources/icon_slider.ui
Normal file
37
resources/icon_slider.ui
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<interface>
|
||||
<template class="JBIconSlider" parent="GtkBox">
|
||||
<property name="css-classes">icon-slider</property>
|
||||
<child>
|
||||
<object class="GtkToggleButton" id="button">
|
||||
<property name="css-classes">slider-button</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="icon_box">
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<child>
|
||||
<object class="JBIcon" id="main_icon"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBIcon" id="second_icon">
|
||||
<property name="visible">false</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkAdjustment" id="adjustment">
|
||||
<property name="lower">0</property>
|
||||
<property name="upper">100</property>
|
||||
<property name="step-increment">1</property>
|
||||
<property name="page-increment">5</property>
|
||||
<property name="value">60</property>
|
||||
</object>
|
||||
<object class="GtkScale" id="slider">
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<property name="adjustment">adjustment</property>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
10
resources/resources.gresource.xml
Normal file
10
resources/resources.gresource.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<gresources>
|
||||
<gresource prefix="/net/jmb19905/jmb-bar/">
|
||||
<file compressed="true" preprocess="xml-stripblanks">utilities.ui</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">icon.ui</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">wifi_widget.ui</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">icon_slider.ui</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">expandable_bar_item.ui</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
164
resources/utilities.ui
Normal file
164
resources/utilities.ui
Normal file
@@ -0,0 +1,164 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<interface>
|
||||
<template class="JBUtilities" parent="GtkBox">
|
||||
<property name="halign">GTK_ALIGN_END</property>
|
||||
<property name="valign">GTK_ALIGN_FILL</property>
|
||||
<property name="hexpand">true</property>
|
||||
<property name="vexpand">true</property>
|
||||
<property name="css-classes">utilities</property>
|
||||
<child>
|
||||
<object class="JBIconSlider" id="volume">
|
||||
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBIconSlider" id="brightness">
|
||||
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToggleButton" id="caffeine">
|
||||
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBExpandableBarItem" id="stats">
|
||||
<property name="spacing">0</property>
|
||||
<property name="vexpand">true</property>
|
||||
<property name="valign">GTK_ALIGN_FILL</property>
|
||||
<property name="css-classes">stats</property>
|
||||
<property name="main-child">
|
||||
<object class="JBIconLabel" id="cpu">
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<property name="spacing">8</property>
|
||||
<property name="font-icon"></property>
|
||||
</object>
|
||||
</property>
|
||||
<property name="second-child">
|
||||
<object class="GtkBox">
|
||||
<property name="spacing">8</property>
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<child>
|
||||
<object class="JBIconLabel" id="ram">
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<property name="spacing">8</property>
|
||||
<property name="font-icon"></property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBIconLabel" id="disk">
|
||||
<property name="spacing">8</property>
|
||||
<property name="font-icon"></property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBIconLabel" id="gpu">
|
||||
<property name="spacing">8</property>
|
||||
<property name="icon-path">icons/gpu-card.svg</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="network">
|
||||
<child>
|
||||
<object class="JBIconLabel">
|
||||
<property name="spacing">0</property>
|
||||
<property name="icon-path">icons/disconnected.svg</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="vpn_button">
|
||||
<child>
|
||||
<object class="JBIcon">
|
||||
<property name="font-icon"></property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkRevealer" id="vpns">
|
||||
<property name="transition-type">GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT</property>
|
||||
<property name="transition-duration">500</property>
|
||||
<property name="reveal-child">false</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="spacing">0</property>
|
||||
<property name="vexpand">true</property>
|
||||
<property name="valign">GTK_ALIGN_FILL</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="wg">
|
||||
<property name="css-classes">vpn</property>
|
||||
<property name="label">wg</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="ts">
|
||||
<property name="css-classes">vpn</property>
|
||||
<property name="label">ts</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBExpandableBarItem" id="battery">
|
||||
<property name="spacing">0</property>
|
||||
<property name="vexpand">true</property>
|
||||
<property name="valign">GTK_ALIGN_FILL</property>
|
||||
<property name="css-classes">battery</property>
|
||||
<property name="main-child">
|
||||
<object class="JBIconLabel" id="capacity">
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<property name="spacing">0</property>
|
||||
<property name="font-icon">none</property>
|
||||
</object>
|
||||
</property>
|
||||
<property name="second-child">
|
||||
<object class="GtkBox">
|
||||
<property name="spacing">0</property>
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<child>
|
||||
<object class="JBIconLabel" id="wattage">
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<property name="spacing">0</property>
|
||||
<property name="font-icon"></property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBIconLabel" id="remaining_time">
|
||||
<property name="spacing">0</property>
|
||||
<property name="font-icon"></property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBExpandableBarItem" id="clock">
|
||||
<property name="spacing">0</property>
|
||||
<property name="vexpand">true</property>
|
||||
<property name="valign">GTK_ALIGN_FILL</property>
|
||||
<property name="css-classes">clock</property>
|
||||
<property name="second-child">
|
||||
<object class="GtkLabel" id="time_hidden"/>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="shutdown">
|
||||
<child>
|
||||
<object class="JBIcon">
|
||||
<property name="font-icon"></property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
57
resources/wifi_widget.ui
Normal file
57
resources/wifi_widget.ui
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<interface>
|
||||
<template class="JBWifiWidget" parent="GtkButton">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<property name="spacing">4</property>
|
||||
<child>
|
||||
<object class="JBIcon" id="wifi_icon">
|
||||
<property name="css-classes">wifi-icon</property>
|
||||
<property name="pixel-size">24</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSpinner" id="spinner">
|
||||
<property name="css-classes">wifi-spinner</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkStack" id="stack">
|
||||
<child>
|
||||
<object class="GtkStackPage">
|
||||
<property name="name">ssid</property>
|
||||
<property name="child">
|
||||
<object class="GtkLabel" id="ssid">
|
||||
<property name="hexpand">true</property>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkStackPage">
|
||||
<property name="name">pass</property>
|
||||
<property name="child">
|
||||
<object class="GtkPasswordEntry" id="password">
|
||||
<property name="hexpand">true</property>
|
||||
<property name="css-classes">password</property>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBIcon" id="known">
|
||||
<property name="pixel-size">24</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="JBIcon" id="secure">
|
||||
<property name="pixel-size">24</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
Reference in New Issue
Block a user