Improve layout of save/delete presets floaters

master
Ansariel 2020-05-28 16:04:54 +02:00
parent de152eda9c
commit 2251be7f79
4 changed files with 25 additions and 25 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<floater name="Delete Pref Preset" title="Voreinstellung löschen">
<floater name="delete_pref_preset" title="Voreinstellung löschen">
<string name="title_graphic">
Grafik-Voreinstellung löschen
</string>

View File

@ -7,7 +7,7 @@
name="delete_pref_preset"
save_rect="true"
title="Delete Pref Preset"
width="300">
width="240">
<string name="title_graphic">Delete Graphic Preset</string>
<string name="title_camera">Delete Camera Preset</string>
@ -16,7 +16,7 @@
follows="top|left|right"
height="10"
layout="topleft"
left="20"
left="10"
name="Preset"
top="30"
width="200">
@ -25,19 +25,19 @@
<combo_box
follows="top|left"
layout="topleft"
left="20"
left="10"
name="preset_combo"
top_delta="20"
width="200"/>
width="220"/>
<button
follows="top|left"
height="23"
label="Delete"
layout="topleft"
top_delta="40"
left="20"
left="10"
name="delete"
width="70"/>
width="100"/>
<button
follows="top|left"
height="23"
@ -45,5 +45,5 @@
layout="topleft"
left_pad="20"
name="cancel"
width="70"/>
width="100"/>
</floater>

View File

@ -1,20 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<floater
legacy_header_height="18"
height="185"
height="180"
help_topic="floater_save_preset"
layout="topleft"
name="save_camera_preset"
save_rect="true"
title="Save Camera Preset"
width="280">
width="240">
<string name="btn_label_save">Save</string>
<string name="btn_label_replace">Replace</string>
<radio_group
height="85"
layout="topleft"
left="20"
left="5"
top="15"
width="150"
name="radio_save_preset">
@ -38,7 +38,7 @@
follows="top|left"
height="23"
layout="topleft"
left="41"
left="26"
name="preset_txt_editor"
width="200"
top="45"/>
@ -48,9 +48,9 @@
label="Save"
layout="topleft"
top="145"
left="25"
left="10"
name="save"
width="110"/>
width="100"/>
<button
follows="bottom|right"
height="25"
@ -58,12 +58,12 @@
layout="topleft"
left_pad="20"
name="cancel"
width="110"/>
width="100"/>
<!-- *HACK to correctly draw drop-down list over the buttons-->
<combo_box
follows="top|left"
layout="topleft"
left="41"
left="26"
name="preset_combo"
top_delta="-40"
width="200"/>

View File

@ -1,42 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<floater
legacy_header_height="18"
height="145"
height="140"
help_topic="floater_save_preset"
layout="topleft"
name="save_pref_preset"
save_rect="true"
title="Save Graphic Preset"
width="300">
width="245">
<text
follows="top|left|right"
height="32"
layout="topleft"
word_wrap="true"
left="20"
left="10"
name="Preset"
top="30"
width="200">
width="220">
Type a name for the preset or choose an existing preset.
</text>
<combo_box
follows="top|left"
layout="topleft"
left="20"
left="10"
name="preset_combo"
top_delta="35"
allow_text_entry="true"
width="200"/>
width="220"/>
<button
follows="top|left"
height="23"
label="Save"
layout="topleft"
top_delta="40"
left="20"
left="10"
name="save"
width="70"/>
width="100"/>
<button
follows="bottom|right"
height="23"
@ -44,5 +44,5 @@
layout="topleft"
left_pad="20"
name="cancel"
width="70"/>
width="100"/>
</floater>