zui 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Components/Builtins/Accordion.qml +1 -1
- data/Components/Builtins/ActionButton.qml +1 -3
- data/Components/Builtins/AlertDialog.qml +2 -1
- data/Components/Builtins/AnimatedImage.qml +0 -2
- data/Components/Builtins/AreaChart.qml +0 -2
- data/Components/Builtins/AspectRatio.qml +0 -2
- data/Components/Builtins/Avatar.qml +0 -2
- data/Components/Builtins/Badge.qml +0 -2
- data/Components/Builtins/Banner.qml +2 -2
- data/Components/Builtins/BarChart.qml +0 -2
- data/Components/Builtins/BarIconButton.qml +1 -3
- data/Components/Builtins/BarIndicator.qml +3 -3
- data/Components/Builtins/BorderImage.qml +0 -2
- data/Components/Builtins/BorderOverlay.qml +0 -2
- data/Components/Builtins/Breadcrumb.qml +2 -2
- data/Components/Builtins/Button.qml +1 -2
- data/Components/Builtins/ButtonGroup.qml +0 -2
- data/Components/Builtins/Card.qml +0 -2
- data/Components/Builtins/Center.qml +0 -2
- data/Components/Builtins/CheckDelegate.qml +2 -1
- data/Components/Builtins/Checkbox.qml +1 -3
- data/Components/Builtins/Chip.qml +2 -4
- data/Components/Builtins/Column.qml +0 -2
- data/Components/Builtins/ColumnLayout.qml +0 -2
- data/Components/Builtins/ConfirmDialog.qml +0 -2
- data/Components/Builtins/ConstrainedBox.qml +0 -2
- data/Components/Builtins/Container.qml +0 -2
- data/Components/Builtins/CursorSurface.qml +0 -2
- data/Components/Builtins/DelayButton.qml +0 -2
- data/Components/Builtins/Dial.qml +0 -2
- data/Components/Builtins/Divider.qml +0 -2
- data/Components/Builtins/Dropdown.qml +0 -2
- data/Components/Builtins/ExpansionPanel.qml +1 -1
- data/Components/Builtins/FittedBox.qml +0 -2
- data/Components/Builtins/Flickable.qml +0 -2
- data/Components/Builtins/Flipable.qml +0 -2
- data/Components/Builtins/Flow.qml +0 -2
- data/Components/Builtins/FocusScope.qml +0 -2
- data/Components/Builtins/FontLoader.qml +0 -2
- data/Components/Builtins/Grid.qml +0 -2
- data/Components/Builtins/GridLayout.qml +0 -2
- data/Components/Builtins/GridView.qml +1 -1
- data/Components/Builtins/Icon.qml +1 -3
- data/Components/Builtins/Image.qml +0 -2
- data/Components/Builtins/ItemDelegate.qml +2 -2
- data/Components/Builtins/KeyCatcher.qml +0 -2
- data/Components/Builtins/Label.qml +0 -2
- data/Components/Builtins/LineChart.qml +0 -2
- data/Components/Builtins/ListView.qml +1 -3
- data/Components/Builtins/Loader.qml +0 -2
- data/Components/Builtins/Markdown.qml +0 -2
- data/Components/Builtins/ModalSheet.qml +1 -1
- data/Components/Builtins/MultiSelect.qml +0 -2
- data/Components/Builtins/NavigationRail.qml +1 -1
- data/Components/Builtins/NumberField.qml +0 -2
- data/Components/Builtins/OpticalGlyph.qml +1 -3
- data/Components/Builtins/PanelHero.qml +0 -2
- data/Components/Builtins/PasswordField.qml +1 -3
- data/Components/Builtins/Progress.qml +0 -2
- data/Components/Builtins/RadioButton.qml +0 -2
- data/Components/Builtins/RadioGroup.qml +0 -2
- data/Components/Builtins/RangeSlider.qml +0 -2
- data/Components/Builtins/Rectangle.qml +0 -2
- data/Components/Builtins/RichText.qml +0 -2
- data/Components/Builtins/RoundButton.qml +3 -3
- data/Components/Builtins/Row.qml +0 -2
- data/Components/Builtins/RowLayout.qml +0 -2
- data/Components/Builtins/ScreenCapture.qml +1 -1
- data/Components/Builtins/Scroll.qml +0 -2
- data/Components/Builtins/SearchableDropdown.qml +0 -2
- data/Components/Builtins/SectionHeader.qml +0 -2
- data/Components/Builtins/SelectableText.qml +0 -2
- data/Components/Builtins/Separator.qml +0 -2
- data/Components/Builtins/Slider.qml +0 -2
- data/Components/Builtins/Spacer.qml +0 -2
- data/Components/Builtins/SpinBox.qml +0 -2
- data/Components/Builtins/SplitView.qml +0 -2
- data/Components/Builtins/Stack.qml +0 -2
- data/Components/Builtins/StackLayout.qml +0 -2
- data/Components/Builtins/SwipeDelegate.qml +3 -3
- data/Components/Builtins/TabButton.qml +1 -1
- data/Components/Builtins/Text.qml +0 -2
- data/Components/Builtins/TextArea.qml +0 -2
- data/Components/Builtins/TextField.qml +0 -2
- data/Components/Builtins/TextMetrics.qml +0 -2
- data/Components/Builtins/Toast.qml +1 -1
- data/Components/Builtins/Toggle.qml +0 -2
- data/Components/Builtins/ToggleSwitch.qml +0 -2
- data/Components/Builtins/ToolButton.qml +3 -3
- data/Components/Builtins/Tooltip.qml +0 -2
- data/Components/Builtins/VectorImage.qml +1 -2
- data/Components/Builtins/Video.qml +1 -2
- data/Components/Builtins/WidgetButton.qml +0 -2
- data/Components/Builtins/Wrap.qml +0 -2
- data/ControlNode.qml +10 -22
- data/Controls/BarIconButton.qml +1 -1
- data/Controls/BarIndicator.qml +1 -1
- data/Controls/Button.qml +2 -1
- data/Controls/OpticalGlyph.qml +1 -1
- data/Desktop.qml +7 -3
- data/Fonts/FontAwesome-Brands.otf +0 -0
- data/Fonts/FontAwesome-Solid.otf +0 -0
- data/Fonts/LICENSE-FontAwesome.txt +165 -0
- data/Fonts/LICENSE-RobotoMono.txt +93 -0
- data/Fonts/RobotoMono-Bold.otf +0 -0
- data/Fonts/RobotoMono-Regular.otf +0 -0
- data/README.md +19 -9
- data/Service.qml +30 -6
- data/THIRD_PARTY_NOTICES.md +14 -0
- data/Theme/Fonts.qml +32 -0
- data/Theme/Style.qml +1 -1
- data/Theme/qmldir +1 -0
- data/lib/zui/application.rb +28 -3
- data/lib/zui/builder.rb +5 -2
- data/lib/zui/components.rb +0 -1
- data/lib/zui/runtime.rb +1 -1
- data/lib/zui.rb +1 -1
- metadata +9 -2
- data/Components/Builtins/WebView.qml +0 -57
|
@@ -130,7 +130,7 @@ QQC.Popup {
|
|
|
130
130
|
visible: renderer.prop("show_close", true) !== false
|
|
131
131
|
&& renderer.prop("dismissible", true) !== false
|
|
132
132
|
text: renderer.iconGlyph("xmark")
|
|
133
|
-
font.family: renderer.
|
|
133
|
+
font.family: renderer.iconFontFamily
|
|
134
134
|
font.pixelSize: Number(renderer.prop("font_size", Style.font.body))
|
|
135
135
|
onClicked: modalSheetRoot.dismiss("close_button")
|
|
136
136
|
}
|
|
@@ -103,7 +103,7 @@ QQC.Pane {
|
|
|
103
103
|
color: parent.selected ? renderer.prop("accent", Color.accent)
|
|
104
104
|
: (parent.available ? renderer.prop("foreground", renderer.foreground)
|
|
105
105
|
: renderer.prop("muted", Color.muted))
|
|
106
|
-
font.family: renderer.
|
|
106
|
+
font.family: renderer.iconFontFamilyFor(railRoot.itemValue(index, "icon", "circle_info"))
|
|
107
107
|
font.pixelSize: Number(renderer.prop("icon_size", Style.font.icon))
|
|
108
108
|
anchors.verticalCenter: parent.verticalCenter
|
|
109
109
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import QtQuick
|
|
2
2
|
import QtQuick.Controls as QQC
|
|
3
3
|
import QtQuick.Layouts
|
|
4
|
-
import QtMultimedia
|
|
5
|
-
import QtQuick.VectorImage
|
|
6
4
|
import "../../Theme"
|
|
7
5
|
import "../../Controls" as ZuiControls
|
|
8
6
|
|
|
@@ -12,5 +10,5 @@ ZuiControls.OpticalGlyph {
|
|
|
12
10
|
fontSize: Number(renderer.prop("size", Style.font.body))
|
|
13
11
|
color: renderer.prop("color", renderer.foreground)
|
|
14
12
|
debugBounds: renderer.prop("debug_bounds", false) === true
|
|
15
|
-
fontFamily: renderer.
|
|
13
|
+
fontFamily: renderer.iconFontFamilyFor(renderer.prop("text", ""))
|
|
16
14
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import QtQuick
|
|
2
2
|
import QtQuick.Controls as QQC
|
|
3
3
|
import QtQuick.Layouts
|
|
4
|
-
import QtMultimedia
|
|
5
|
-
import QtQuick.VectorImage
|
|
6
4
|
import "../../Theme"
|
|
7
5
|
import "../../Controls" as ZuiControls
|
|
8
6
|
|
|
@@ -41,7 +39,7 @@ Item {
|
|
|
41
39
|
text: renderer.iconGlyph(passwordRoot.revealState ? "eye_slash" : "eye")
|
|
42
40
|
textFormat: Text.PlainText
|
|
43
41
|
color: renderer.foreground
|
|
44
|
-
font.family: renderer.
|
|
42
|
+
font.family: renderer.iconFontFamily
|
|
45
43
|
font.pixelSize: Style.font.icon
|
|
46
44
|
}
|
|
47
45
|
TapHandler {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import QtQuick
|
|
2
2
|
import QtQuick.Controls as QQC
|
|
3
3
|
import QtQuick.Layouts
|
|
4
|
-
import QtMultimedia
|
|
5
|
-
import QtQuick.VectorImage
|
|
6
4
|
import "../../Theme"
|
|
7
5
|
import "../../Controls" as ZuiControls
|
|
8
6
|
|
|
@@ -28,7 +26,9 @@ QQC.RoundButton {
|
|
|
28
26
|
text: String(renderer.prop("icon", "")).length > 0 ? renderer.iconGlyph(renderer.prop("icon", "")) : nativeRoundButton.text
|
|
29
27
|
textFormat: Text.PlainText
|
|
30
28
|
color: nativeRoundButton.checked ? Color.background : renderer.prop("foreground", renderer.foreground)
|
|
31
|
-
font.family: String(renderer.prop("
|
|
29
|
+
font.family: String(renderer.prop("icon", "")).length > 0
|
|
30
|
+
? renderer.iconFontFamilyFor(renderer.prop("icon", ""))
|
|
31
|
+
: String(renderer.prop("font_family", renderer.fontFamily))
|
|
32
32
|
font.pixelSize: Number(String(renderer.prop("icon", "")).length > 0 ? renderer.prop("icon_size", Style.font.icon) : renderer.prop("font_size", Style.font.body))
|
|
33
33
|
font.bold: true
|
|
34
34
|
horizontalAlignment: Text.AlignHCenter
|
data/Components/Builtins/Row.qml
CHANGED
|
@@ -106,7 +106,7 @@ QQC.SwipeDelegate {
|
|
|
106
106
|
text: String(renderer.prop("icon", "")).length > 0
|
|
107
107
|
? renderer.iconGlyph(renderer.prop("icon", "")) : ""
|
|
108
108
|
color: renderer.prop("icon_color", renderer.prop("foreground", renderer.foreground))
|
|
109
|
-
font.family: renderer.
|
|
109
|
+
font.family: renderer.iconFontFamilyFor(renderer.prop("icon", ""))
|
|
110
110
|
font.pixelSize: Number(renderer.prop("icon_size", 22))
|
|
111
111
|
horizontalAlignment: Text.AlignHCenter
|
|
112
112
|
}
|
|
@@ -147,7 +147,7 @@ QQC.SwipeDelegate {
|
|
|
147
147
|
visible: text.length > 0
|
|
148
148
|
text: renderer.iconGlyph(renderer.prop("left_icon", ""))
|
|
149
149
|
color: Color.background
|
|
150
|
-
font.family: renderer.
|
|
150
|
+
font.family: renderer.iconFontFamilyFor(renderer.prop("left_icon", ""))
|
|
151
151
|
font.pixelSize: Number(renderer.prop("icon_size", 22))
|
|
152
152
|
}
|
|
153
153
|
Text {
|
|
@@ -174,7 +174,7 @@ QQC.SwipeDelegate {
|
|
|
174
174
|
visible: text.length > 0
|
|
175
175
|
text: renderer.iconGlyph(renderer.prop("right_icon", ""))
|
|
176
176
|
color: Color.background
|
|
177
|
-
font.family: renderer.
|
|
177
|
+
font.family: renderer.iconFontFamilyFor(renderer.prop("right_icon", ""))
|
|
178
178
|
font.pixelSize: Number(renderer.prop("icon_size", 22))
|
|
179
179
|
}
|
|
180
180
|
Text {
|
|
@@ -45,7 +45,7 @@ QQC.TabButton {
|
|
|
45
45
|
&& String(renderer.prop("icon_source", "")).length === 0
|
|
46
46
|
text: renderer.iconGlyph(renderer.prop("icon", ""))
|
|
47
47
|
color: renderer.prop("icon_color", renderer.prop("foreground", renderer.foreground))
|
|
48
|
-
font.family: renderer.
|
|
48
|
+
font.family: renderer.iconFontFamilyFor(renderer.prop("icon", ""))
|
|
49
49
|
font.pixelSize: Number(renderer.prop("icon_width", Style.font.body))
|
|
50
50
|
anchors.verticalCenter: parent.verticalCenter
|
|
51
51
|
}
|
|
@@ -105,7 +105,7 @@ QQC.Popup {
|
|
|
105
105
|
text: renderer.iconGlyph(toastRoot.severityIcon())
|
|
106
106
|
textFormat: Text.PlainText
|
|
107
107
|
color: toastRoot.severityColor()
|
|
108
|
-
font.family: renderer.
|
|
108
|
+
font.family: renderer.iconFontFamily
|
|
109
109
|
font.pixelSize: Number(renderer.prop("icon_size", 22))
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import QtQuick
|
|
2
2
|
import QtQuick.Controls as QQC
|
|
3
3
|
import QtQuick.Layouts
|
|
4
|
-
import QtMultimedia
|
|
5
|
-
import QtQuick.VectorImage
|
|
6
4
|
import "../../Theme"
|
|
7
5
|
import "../../Controls" as ZuiControls
|
|
8
6
|
|
|
@@ -28,7 +26,9 @@ QQC.ToolButton {
|
|
|
28
26
|
text: String(renderer.prop("icon", "")).length > 0 ? renderer.iconGlyph(renderer.prop("icon", "")) : nativeToolButton.text
|
|
29
27
|
textFormat: Text.PlainText
|
|
30
28
|
color: nativeToolButton.checked ? Color.background : renderer.prop("foreground", renderer.foreground)
|
|
31
|
-
font.family: String(renderer.prop("
|
|
29
|
+
font.family: String(renderer.prop("icon", "")).length > 0
|
|
30
|
+
? renderer.iconFontFamilyFor(renderer.prop("icon", ""))
|
|
31
|
+
: String(renderer.prop("font_family", renderer.fontFamily))
|
|
32
32
|
font.pixelSize: Number(String(renderer.prop("icon", "")).length > 0 ? renderer.prop("icon_size", Style.font.icon) : renderer.prop("font_size", Style.font.body))
|
|
33
33
|
horizontalAlignment: Text.AlignHCenter
|
|
34
34
|
verticalAlignment: Text.AlignVCenter
|
data/ControlNode.qml
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import QtQuick
|
|
2
2
|
import QtQuick.Controls as QQC
|
|
3
3
|
import QtQuick.Layouts
|
|
4
|
-
import QtMultimedia
|
|
5
|
-
import QtQuick.VectorImage
|
|
6
4
|
import "Theme"
|
|
7
5
|
import "Controls" as ZuiControls
|
|
8
6
|
import "Components/Builtins" as Builtins
|
|
@@ -15,6 +13,8 @@ Loader {
|
|
|
15
13
|
property string controlId: ""
|
|
16
14
|
property color foreground: Color.foreground
|
|
17
15
|
property string fontFamily: Style.font.family
|
|
16
|
+
readonly property string iconFontFamily: Fonts.iconFamily
|
|
17
|
+
readonly property string brandIconFontFamily: Fonts.brandIconFamily
|
|
18
18
|
|
|
19
19
|
// Shared recursive delegates are framework infrastructure. Individual built-in
|
|
20
20
|
// renderers consume these without duplicating ControlNode's lifecycle wiring.
|
|
@@ -35,7 +35,7 @@ Loader {
|
|
|
35
35
|
"number_field", "text_area", "search_field", "password_field", "slider", "range_slider", "dial", "spin_box", "double_spin_box", "color_picker", "date_picker", "time_picker", "file_picker", "folder_picker", "font_picker", "dialog_button_box", "action", "action_group", "dropdown", "multi_select", "button_group", "progress", "line_chart", "area_chart", "bar_chart", "separator", "divider",
|
|
36
36
|
"section_header", "searchable_dropdown", "confirm_dialog", "panel_hero", "optical_glyph",
|
|
37
37
|
"cursor_surface", "widget_button", "list_view", "key_catcher", "canvas", "shape", "line", "path", "circle", "gradient", "shader_effect", "shader_effect_source", "multi_effect", "rectangular_shadow", "opacity_mask", "blur", "drop_shadow", "colorize", "glow", "particle_system",
|
|
38
|
-
"
|
|
38
|
+
"data_table", "horizontal_header", "vertical_header", "table_view_delegate", "tree_view_delegate", "horizontal_header_delegate", "vertical_header_delegate", "reorderable_list", "carousel", "calendar", "month_grid", "week_number_column", "day_of_week_row", "tumbler",
|
|
39
39
|
"stacked_bar_chart", "pie_chart", "donut_chart", "scatter_chart", "bubble_chart", "radar_chart", "heatmap", "sparkline", "gauge", "radial_gauge", "histogram", "candlestick_chart", "legend",
|
|
40
40
|
"drag_area", "drop_area", "pinch_area", "hover_area", "selection_rectangle", "scroll_bar", "scroll_indicator",
|
|
41
41
|
"animation", "number_animation", "color_animation", "rotation_animation", "vector_animation", "path_animation", "property_animation", "pause_animation", "script_action", "property_action", "parallel_animation", "sequential_animation", "spring_animation", "smoothed_animation", "anchor_animation", "parent_animation", "opacity_animator", "rotation_animator", "scale_animator", "x_animator", "y_animator", "uniform_animator", "frame_animation", "animation_controller", "behavior", "transition", "state", "state_group", "property_changes", "anchor_changes", "parent_change", "timer",
|
|
@@ -55,7 +55,7 @@ Loader {
|
|
|
55
55
|
|
|
56
56
|
function iconGlyph(name) {
|
|
57
57
|
var icons = {
|
|
58
|
-
ruby: "\
|
|
58
|
+
ruby: "\uf3a5",
|
|
59
59
|
phone: "\uf3cd",
|
|
60
60
|
plus: "\uf067",
|
|
61
61
|
minus: "\uf068",
|
|
@@ -78,6 +78,12 @@ Loader {
|
|
|
78
78
|
return icons[key] || key
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
function iconFontFamilyFor(name) {
|
|
82
|
+
var key = String(name || "")
|
|
83
|
+
return ["bluetooth", "android", "apple"].indexOf(key) >= 0
|
|
84
|
+
? brandIconFontFamily : iconFontFamily
|
|
85
|
+
}
|
|
86
|
+
|
|
81
87
|
function escapeAutoText(value) {
|
|
82
88
|
return String(value === undefined || value === null ? "" : value)
|
|
83
89
|
.replace(/&/g, "&")
|
|
@@ -298,12 +304,9 @@ Loader {
|
|
|
298
304
|
if (node.type === "container") return containerComponent
|
|
299
305
|
if (node.type === "image") return imageComponent
|
|
300
306
|
if (node.type === "vector_image") return vectorImageComponent
|
|
301
|
-
if (node.type === "model_view_3d") return modelView3dComponent
|
|
302
307
|
if (node.type === "font_loader") return fontLoaderComponent
|
|
303
308
|
if (node.type === "text_metrics") return textMetricsComponent
|
|
304
309
|
if (node.type === "animated_image") return animatedImageComponent
|
|
305
|
-
if (node.type === "video") return videoComponent
|
|
306
|
-
if (node.type === "audio") return audioComponent
|
|
307
310
|
if (node.type === "avatar") return avatarComponent
|
|
308
311
|
if (node.type === "badge") return badgeComponent
|
|
309
312
|
if (node.type === "chip") return chipComponent
|
|
@@ -580,11 +583,6 @@ Loader {
|
|
|
580
583
|
Builtins.VectorImage { renderer: root }
|
|
581
584
|
}
|
|
582
585
|
|
|
583
|
-
Component {
|
|
584
|
-
id: modelView3dComponent
|
|
585
|
-
Builtins.ModelView3d { renderer: root }
|
|
586
|
-
}
|
|
587
|
-
|
|
588
586
|
Component {
|
|
589
587
|
id: fontLoaderComponent
|
|
590
588
|
Builtins.FontLoader { renderer: root }
|
|
@@ -600,16 +598,6 @@ Loader {
|
|
|
600
598
|
Builtins.AnimatedImage { renderer: root }
|
|
601
599
|
}
|
|
602
600
|
|
|
603
|
-
Component {
|
|
604
|
-
id: videoComponent
|
|
605
|
-
Builtins.Video { renderer: root }
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
Component {
|
|
609
|
-
id: audioComponent
|
|
610
|
-
Builtins.Audio { renderer: root }
|
|
611
|
-
}
|
|
612
|
-
|
|
613
601
|
Component {
|
|
614
602
|
id: avatarComponent
|
|
615
603
|
Builtins.Avatar { renderer: root }
|
data/Controls/BarIconButton.qml
CHANGED
|
@@ -10,7 +10,7 @@ Item {
|
|
|
10
10
|
property color activeColor: Color.accent
|
|
11
11
|
property real slotSize: 30
|
|
12
12
|
property real opticalSize: 18
|
|
13
|
-
property string fontFamily:
|
|
13
|
+
property string fontFamily: Fonts.iconFamily
|
|
14
14
|
property real fontSize: Style.font.icon
|
|
15
15
|
property real textRotation: 0
|
|
16
16
|
property bool keepSpace: false
|
data/Controls/BarIndicator.qml
CHANGED
|
@@ -11,7 +11,7 @@ Item {
|
|
|
11
11
|
property string indicatorBlock: "single"
|
|
12
12
|
property color foreground: Color.foreground
|
|
13
13
|
property color activeColor: Color.accent
|
|
14
|
-
property string fontFamily:
|
|
14
|
+
property string fontFamily: Fonts.iconFamily
|
|
15
15
|
property real fontSize: Style.font.caption
|
|
16
16
|
signal pressed(int button)
|
|
17
17
|
signal wheelMoved(real delta)
|
data/Controls/Button.qml
CHANGED
|
@@ -15,6 +15,7 @@ Item {
|
|
|
15
15
|
property color background: "transparent"
|
|
16
16
|
property color accent: Color.accent
|
|
17
17
|
property string fontFamily: Style.font.family
|
|
18
|
+
property string iconFontFamily: Fonts.iconFamily
|
|
18
19
|
property real fontSize: Style.font.body
|
|
19
20
|
property real iconSize: Style.font.icon
|
|
20
21
|
property real iconRotation: 0
|
|
@@ -53,7 +54,7 @@ Item {
|
|
|
53
54
|
visible: root.iconText !== ""
|
|
54
55
|
text: root.iconText
|
|
55
56
|
color: root.selected || root.active ? Color.background : root.foreground
|
|
56
|
-
font.family: root.
|
|
57
|
+
font.family: root.iconFontFamily
|
|
57
58
|
font.pixelSize: root.iconSize
|
|
58
59
|
rotation: root.iconRotation
|
|
59
60
|
}
|
data/Controls/OpticalGlyph.qml
CHANGED
|
@@ -10,5 +10,5 @@ Item {
|
|
|
10
10
|
implicitWidth: glyph.implicitWidth
|
|
11
11
|
implicitHeight: glyph.implicitHeight
|
|
12
12
|
Rectangle { anchors.fill: parent; visible: parent.debugBounds; color: "transparent"; border.color: Color.accent }
|
|
13
|
-
Text { id: glyph; anchors.centerIn: parent; color: Color.foreground; font.family:
|
|
13
|
+
Text { id: glyph; anchors.centerIn: parent; color: Color.foreground; font.family: Fonts.iconFamily; font.pixelSize: Style.font.icon }
|
|
14
14
|
}
|