Use GTK Composite Templates (close #62)
Use GTK Composite Templates for GUI elements to clean up and simplify the code for widgets and all UI elements. This includes splitting the large “gtk.glade” file into smaller .ui files and the large “widgets.py” file into smaller .py files.
This commit is contained in:
parent
f4b545369c
commit
ba373ddf4e
31 changed files with 4431 additions and 4300 deletions
70
data/ui/gtk.menu.ui
Normal file
70
data/ui/gtk.menu.ui
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<menu id="app-menu">
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="action">win.connect</attribute>
|
||||
<attribute name="label" translatable="yes">Connect</attribute>
|
||||
<attribute name="accel"><Primary>c</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="action">win.play</attribute>
|
||||
<attribute name="label" translatable="yes">Play</attribute>
|
||||
<attribute name="accel"><Primary>p</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="action">win.clear-playlist</attribute>
|
||||
<attribute name="label" translatable="yes">Clear Playlist</attribute>
|
||||
<attribute name="accel"><Primary>r</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="action">win.toggle-fullscreen</attribute>
|
||||
<attribute name="label" translatable="yes">Toggle Fullscreen</attribute>
|
||||
<attribute name="accel">F11</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="action">win.panel</attribute>
|
||||
<attribute name="label" translatable="yes">Connection</attribute>
|
||||
<attribute name="target">0</attribute>
|
||||
<attribute name="accel"><Primary>KP_1</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="action">win.panel</attribute>
|
||||
<attribute name="label" translatable="yes">Cover</attribute>
|
||||
<attribute name="target">1</attribute>
|
||||
<attribute name="accel"><Primary>KP_2</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="action">win.panel</attribute>
|
||||
<attribute name="label" translatable="yes">Playlist</attribute>
|
||||
<attribute name="target">2</attribute>
|
||||
<attribute name="accel"><Primary>KP_3</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="action">win.panel</attribute>
|
||||
<attribute name="label" translatable="yes">Library</attribute>
|
||||
<attribute name="target">3</attribute>
|
||||
<attribute name="accel"><Primary>KP_4</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="action">win.show-help-overlay</attribute>
|
||||
<attribute name="label" translatable="yes">Keyboard Shortcuts</attribute>
|
||||
<attribute name="accel"><Primary>k</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="action">app.info</attribute>
|
||||
<attribute name="label" translatable="yes">Info</attribute>
|
||||
<attribute name="accel"><Primary>i</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="action">app.quit</attribute>
|
||||
<attribute name="label" translatable="yes">Quit</attribute>
|
||||
<attribute name="accel"><Primary>q</attribute>
|
||||
</item>
|
||||
</section>
|
||||
</menu>
|
||||
</interface>
|
||||
Loading…
Add table
Add a link
Reference in a new issue