mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 07:57:49 +00:00
FontEditor: Convert UI from fixed to implicit height
This gets rid of a magic number, and means that the widget will adapt nicely when the system font changes.
This commit is contained in:
parent
5bd3d0cf25
commit
a8c95097b5
1 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
fill_with_background_color: true
|
fill_with_background_color: true
|
||||||
|
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
spacing: 2
|
spacing: 2
|
||||||
}
|
}
|
||||||
|
@ -18,21 +19,24 @@
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
name: "left_column_container"
|
name: "left_column_container"
|
||||||
|
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
name: "glyph_editor_container"
|
name: "glyph_editor_container"
|
||||||
|
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
fixed_height: 22
|
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
|
shrink_to_fit: true
|
||||||
|
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,12 +64,14 @@
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
name: "right_column_container"
|
name: "right_column_container"
|
||||||
|
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
spacing: 6
|
spacing: 6
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
name: "glyph_map_container"
|
name: "glyph_map_container"
|
||||||
|
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,6 +80,7 @@
|
||||||
name: "font_metadata_groupbox"
|
name: "font_metadata_groupbox"
|
||||||
title: "Metadata"
|
title: "Metadata"
|
||||||
fixed_height: 220
|
fixed_height: 220
|
||||||
|
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
margins: [6, 6, 6, 6]
|
margins: [6, 6, 6, 6]
|
||||||
}
|
}
|
||||||
|
@ -198,6 +205,7 @@
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
fixed_height: 22
|
fixed_height: 22
|
||||||
|
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue