Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Commit

Permalink
fixed settings dialog; added new dark mode; only show the menu button…
Browse files Browse the repository at this point in the history
… in ubuntu unity
  • Loading branch information
haecker-felix committed Jul 29, 2016
1 parent 46f5ccd commit 5217903
Show file tree
Hide file tree
Showing 7 changed files with 443 additions and 17 deletions.
5 changes: 1 addition & 4 deletions data/ui/main-window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<signal name="clicked" handler="GridListButton_clicked" swapped="no"/>
<child>
<object class="GtkBox">
Expand All @@ -224,7 +222,6 @@
<property name="halign">center</property>
<property name="valign">center</property>
<property name="pixel_size">16</property>
<property name="no_show_all">True</property>
<property name="icon_name">view-grid-symbolic</property>
</object>
<packing>
Expand All @@ -237,8 +234,8 @@
<object class="GtkImage" id="ListImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixel_size">16</property>
<property name="no_show_all">True</property>
<property name="pixel_size">16</property>
<property name="icon_name">view-list-symbolic</property>
</object>
<packing>
Expand Down
261 changes: 261 additions & 0 deletions data/ui/main-window.ui~
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<interface>
<requires lib="gtk+" version="3.14"/>
<template class="GradioMainWindow" parent="GtkApplicationWindow">
<property name="width_request">870</property>
<property name="height_request">500</property>
<property name="can_focus">False</property>
<property name="title" translatable="yes">Gradio</property>
<property name="icon_name">gradio</property>
<child>
<object class="GtkStack" id="ContentStack">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkBox" id="ContentBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkStack" id="DatabaseStack">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="transition_type">crossfade</property>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkSeparator">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkBox" id="Bottom">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="name">database</property>
<property name="title" translatable="yes">Database</property>
</packing>
</child>
<child>
<object class="GtkBox" id="NoConnectionBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_bottom">5</property>
<property name="pixel_size">64</property>
<property name="icon_name">action-unavailable-symbolic</property>
<property name="icon_size">6</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Cannot connect to the database.</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="name">no_connection</property>
<property name="title" translatable="yes">No Connection</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkBox" id="MiniplayerBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_bottom">10</property>
<property name="icon_name">action-unavailable-symbolic</property>
<property name="icon_size">6</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">MINIPLAYER</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="name">page0</property>
<property name="title" translatable="yes">page0</property>
<property name="position">2</property>
</packing>
</child>
</object>
</child>
<child type="titlebar">
<object class="GtkHeaderBar" id="HeaderBar">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="show_close_button">True</property>
<child type="title">
<object class="GtkStackSwitcher" id="StackSwitcher">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="stack">DatabaseStack</property>
</object>
</child>
<child>
<object class="GtkMenuButton" id="MenuButton">
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="no_show_all">True</property>
<property name="use_popover">False</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">open-menu-symbolic</property>
</object>
</child>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
<child>
<object class="GtkButton" id="GridListButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<signal name="clicked" handler="GridListButton_clicked" swapped="no"/>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkImage" id="GridImage">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="pixel_size">16</property>
<property name="no_show_all">True</property>
<property name="icon_name">view-grid-symbolic</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkImage" id="ListImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixel_size">16</property>
<property name="no_show_all">True</property>
<property name="icon_name">view-list-symbolic</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
<packing>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</template>
</interface>
12 changes: 8 additions & 4 deletions data/ui/settings-dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
</child>
<child>
<object class="GtkSwitch" id="UseDarkDesignSwitch">
<property name="visible">False</property>
<property name="no_show_all">True</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="no_show_all">True</property>
<property name="halign">start</property>
<property name="hexpand">True</property>
</object>
Expand All @@ -85,7 +85,7 @@
</child>
<child>
<object class="GtkLabel" id="label4">
<property name="visible">false</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Use dark design:</property>
Expand All @@ -100,7 +100,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Only show playable radio stations:</property>
<property name="label" translatable="yes">Hide broken stations:</property>
</object>
<packing>
<property name="left_attach">0</property>
Expand Down Expand Up @@ -134,6 +134,7 @@
<object class="GtkSpinButton" id="MaxItemsSpinButton">
<property name="can_focus">True</property>
<property name="no_show_all">True</property>
<property name="halign">start</property>
</object>
<packing>
<property name="left_attach">1</property>
Expand All @@ -149,5 +150,8 @@
</child>
</object>
</child>
<child>
<placeholder/>
</child>
</template>
</interface>
Loading

0 comments on commit 5217903

Please sign in to comment.