forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FileManager: Add "Font" tab to File Properties window
We now keep the MappedFile around when inspecting a font, so that we can use that font to display a preview.
- Loading branch information
Showing
4 changed files
with
228 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 123 additions & 0 deletions
123
Userland/Applications/FileManager/PropertiesWindowFontTab.gml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
@GUI::Widget { | ||
layout: @GUI::VerticalBoxLayout { | ||
margins: [8] | ||
spacing: 12 | ||
} | ||
|
||
@GUI::GroupBox { | ||
title: "Font" | ||
preferred_height: "shrink" | ||
layout: @GUI::VerticalBoxLayout { | ||
margins: [12, 8, 0] | ||
spacing: 2 | ||
} | ||
|
||
@GUI::Widget { | ||
layout: @GUI::HorizontalBoxLayout { | ||
spacing: 12 | ||
} | ||
|
||
@GUI::Label { | ||
text: "Format:" | ||
text_alignment: "TopLeft" | ||
fixed_width: 80 | ||
} | ||
|
||
@GUI::Label { | ||
name: "font_format" | ||
text: "TrueType" | ||
text_alignment: "TopLeft" | ||
} | ||
} | ||
|
||
@GUI::Widget { | ||
layout: @GUI::HorizontalBoxLayout { | ||
spacing: 12 | ||
} | ||
|
||
@GUI::Label { | ||
text: "Family:" | ||
text_alignment: "TopLeft" | ||
fixed_width: 80 | ||
} | ||
|
||
@GUI::Label { | ||
name: "font_family" | ||
text: "SerenitySans" | ||
text_alignment: "TopLeft" | ||
} | ||
} | ||
|
||
@GUI::Widget { | ||
layout: @GUI::HorizontalBoxLayout { | ||
spacing: 12 | ||
} | ||
|
||
@GUI::Label { | ||
text: "Fixed width:" | ||
text_alignment: "TopLeft" | ||
fixed_width: 80 | ||
} | ||
|
||
@GUI::Label { | ||
name: "font_fixed_width" | ||
text: "No" | ||
text_alignment: "TopLeft" | ||
} | ||
} | ||
|
||
@GUI::Widget { | ||
layout: @GUI::HorizontalBoxLayout { | ||
spacing: 12 | ||
} | ||
|
||
@GUI::Label { | ||
text: "Width:" | ||
text_alignment: "TopLeft" | ||
fixed_width: 80 | ||
} | ||
|
||
@GUI::Label { | ||
name: "font_width" | ||
text: "Normal" | ||
text_alignment: "TopLeft" | ||
} | ||
} | ||
|
||
@GUI::Widget { | ||
layout: @GUI::HorizontalBoxLayout { | ||
spacing: 12 | ||
} | ||
|
||
@GUI::Label { | ||
text: "Weight:" | ||
text_alignment: "TopLeft" | ||
fixed_width: 80 | ||
} | ||
|
||
@GUI::Label { | ||
name: "font_weight" | ||
text: "500 (Medium)" | ||
text_alignment: "TopLeft" | ||
} | ||
} | ||
|
||
@GUI::Widget { | ||
layout: @GUI::HorizontalBoxLayout { | ||
spacing: 12 | ||
} | ||
|
||
@GUI::Label { | ||
text: "Slope:" | ||
text_alignment: "TopLeft" | ||
fixed_width: 80 | ||
} | ||
|
||
@GUI::Label { | ||
name: "font_slope" | ||
text: "Regular" | ||
text_alignment: "TopLeft" | ||
} | ||
} | ||
} | ||
} |