GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 9e4356f7 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

savestate-listbox-row: Specify thumbnail dimensions in XML

For some reason css min-width, min-height and margin don't work with
GtkDrawingArea, so do it in XML to avoid it breaking in the next commit.

Add 2px to the width and height to accommodate borders.
parent 69823d3a
......@@ -13,12 +13,9 @@
}
.savestate-thumbnail {
min-width: 64px;
min-height: 64px;
color: rgba(255, 255, 255, 0.5);
background: rgba (0, 0, 0, .5);
border: 1px solid rgba (0, 0, 0, .5);
margin: 6px;
border-radius: 5px;
}
......
......@@ -18,6 +18,9 @@
<object class="GtkImage" id="image">
<property name="visible">true</property>
<property name="valign">start</property>
<property name="width-request">66</property>
<property name="height-request">66</property>
<property name="margin">6</property>
<style>
<class name="savestate-thumbnail"/>
</style>
......
......@@ -43,6 +43,9 @@
<property name="visible">True</property>
<property name="icon-name">list-add-symbolic</property>
<property name="pixel-size">32</property>
<property name="width-request">66</property>
<property name="height-request">66</property>
<property name="margin">6</property>
<style>
<class name="savestate-thumbnail"/>
</style>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment