[gnome-games] savestates-list: Remove border
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] savestates-list: Remove border
- Date: Sat, 10 Aug 2019 19:45:04 +0000 (UTC)
commit 930ca780aca09d5c7cdf8406c0ad5ae8d2f937fd
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Aug 11 00:42:13 2019 +0500
savestates-list: Remove border
It gets in the way on mobile, and black background around the game ensures
contrast already.
data/ui/savestates-list.ui | 113 ++++++++++++++++++++-------------------------
1 file changed, 50 insertions(+), 63 deletions(-)
---
diff --git a/data/ui/savestates-list.ui b/data/ui/savestates-list.ui
index af2f4470..93cba422 100644
--- a/data/ui/savestates-list.ui
+++ b/data/ui/savestates-list.ui
@@ -2,6 +2,9 @@
<interface>
<requires lib="gtk+" version="3.24"/>
<template class="GamesSavestatesList" parent="GtkBox">
+ <style>
+ <class name="solid-background"/>
+ </style>
<child>
<object class="GtkRevealer" id="revealer">
<property name="visible">True</property>
@@ -10,92 +13,76 @@
<child>
<object class="GtkBox">
<property name="visible">True</property>
- <style>
- <class name="solid-background"/>
- </style>
+ <property name="orientation">vertical</property>
<child>
- <object class="GtkSeparator">
+ <object class="GtkScrolledWindow" id="scrolled_window">
<property name="visible">True</property>
- <style>
- <class name="sidebar"/>
- </style>
- </object>
- </child>
- <child>
- <object class="GtkBox">
- <property name="visible">True</property>
- <property name="orientation">vertical</property>
+ <property name="vexpand">True</property>
+ <property name="width-request">360</property>
<child>
- <object class="GtkScrolledWindow" id="scrolled_window">
+ <object class="GtkListBox" id="list_box">
<property name="visible">True</property>
- <property name="vexpand">True</property>
- <property name="width-request">350</property>
+ <signal name="row-activated" after="yes" handler="on_row_activated"/>
+ <style>
+ <class name="sidebar"/>
+ </style>
<child>
- <object class="GtkListBox" id="list_box">
+ <object class="GtkListBoxRow" id="new_savestate_row">
<property name="visible">True</property>
- <signal name="row-activated" after="yes" handler="on_row_activated"/>
<style>
- <class name="sidebar"/>
+ <class name="savestate-row"/>
</style>
<child>
- <object class="GtkListBoxRow" id="new_savestate_row">
+ <object class="GtkBox">
<property name="visible">True</property>
- <style>
- <class name="savestate-row"/>
- </style>
<child>
- <object class="GtkBox">
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon-name">list-add-symbolic</property>
+ <property name="pixel-size">32</property>
+ <style>
+ <class name="savestate-thumbnail"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
<property name="visible">True</property>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="icon-name">list-add-symbolic</property>
- <property name="pixel-size">32</property>
- <style>
- <class name="savestate-thumbnail"/>
- </style>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="visible">True</property>
- <property name="margin">12</property>
- <property name="label">Create new savestate</property>
- <attributes>
- <!-- "1.2" is the value of "large" -->
- <attribute name="scale" value="1.2"/>
- </attributes>
- </object>
- </child>
+ <property name="margin">12</property>
+ <property name="label">Create new savestate</property>
+ <attributes>
+ <!-- "1.2" is the value of "large" -->
+ <attribute name="scale" value="1.2"/>
+ </attributes>
</object>
</child>
</object>
</child>
- <style>
- <class name="savestates-list"/>
- </style>
</object>
</child>
+ <style>
+ <class name="savestates-list"/>
+ </style>
</object>
</child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkActionBar">
+ <property name="visible">True</property>
<child>
- <object class="GtkActionBar">
+ <object class="GtkButton" id="delete_btn">
<property name="visible">True</property>
- <child>
- <object class="GtkButton" id="delete_btn">
- <property name="visible">True</property>
- <property name="use-underline">True</property>
- <property name="label" translatable="yes">_Delete</property>
- <signal name="clicked" handler="on_delete_clicked"/>
- <style>
- <class name="destructive-action"/>
- </style>
- </object>
- <packing>
- <property name="pack-type">end</property>
- </packing>
- </child>
+ <property name="use-underline">True</property>
+ <property name="label" translatable="yes">_Delete</property>
+ <signal name="clicked" handler="on_delete_clicked"/>
+ <style>
+ <class name="destructive-action"/>
+ </style>
</object>
+ <packing>
+ <property name="pack-type">end</property>
+ </packing>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]