84a69d7429
The new default project theme uses StyleBoxFlat extensively for a more modern design and better scalability to multiple resolutions. SVG icons are now used in place of PNG icons. While this does not allow for true vector-based icon drawing (icons are still rasterized at load-time), this makes the design work easier for contributors and opens the door to vector drawing in the future (e.g. with polygons or SDFs). Like for editor icons, the SVG header file is now built automatically when a SVG file is changed. This removing the need for running `make_header.py` manually (TODO). The "Use Hidpi" project setting has been removed in favor of a "Default Theme Scale" project setting, which allows creating the default theme at a higher/lower scale than the default. This can be used when designing GUIs with a high base resolution to ensure crisp visuals. Co-authored-by: Yuri Sizov <yuris@humnom.net>
45 lines
1.9 KiB
XML
45 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="ProgressBar" inherits="Range" version="4.0">
|
|
<brief_description>
|
|
General-purpose progress bar.
|
|
</brief_description>
|
|
<description>
|
|
General-purpose progress bar. Shows fill percentage from right to left.
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<members>
|
|
<member name="percent_visible" type="bool" setter="set_percent_visible" getter="is_percent_visible" default="true">
|
|
If [code]true[/code], the fill percentage is displayed on the bar.
|
|
</member>
|
|
<member name="size_flags_vertical" type="int" setter="set_v_size_flags" getter="get_v_size_flags" overrides="Control" default="0" />
|
|
<member name="step" type="float" setter="set_step" getter="get_step" overrides="Range" default="0.01" />
|
|
</members>
|
|
<theme_items>
|
|
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
|
|
The color of the text.
|
|
</theme_item>
|
|
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
|
|
The tint of text outline of the [ProgressBar].
|
|
</theme_item>
|
|
<theme_item name="font_shadow_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
|
|
The color of the text's shadow.
|
|
</theme_item>
|
|
<theme_item name="outline_size" data_type="constant" type="int" default="0">
|
|
The size of the text outline.
|
|
</theme_item>
|
|
<theme_item name="font" data_type="font" type="Font">
|
|
Font used to draw the fill percentage if [member percent_visible] is [code]true[/code].
|
|
</theme_item>
|
|
<theme_item name="font_size" data_type="font_size" type="int">
|
|
Font size used to draw the fill percentage if [member percent_visible] is [code]true[/code].
|
|
</theme_item>
|
|
<theme_item name="bg" data_type="style" type="StyleBox">
|
|
The style of the background.
|
|
</theme_item>
|
|
<theme_item name="fg" data_type="style" type="StyleBox">
|
|
The style of the progress (i.e. the part that fills the bar).
|
|
</theme_item>
|
|
</theme_items>
|
|
</class>
|