Skip to content
Snippets Groups Projects
Commit 77eab0b0 authored by littletux89@gmail.com's avatar littletux89@gmail.com
Browse files

Merge branch 'develop'

parents 1d0402c5 64876e9d
No related branches found
No related tags found
1 merge request!50Features 3819
import QtQuick 2.0
import QtQml 2.2
Item
{
///@details dapFontPath Project path to the font folder
property string dapFontPath
///@details dapFontNames Array of names of font files (for example roboto_thin.ttf)
property var dapFontNames
///@details dapProjectFonts Array of loaded fonts
property var dapProjectFonts
//Create non-visual items
Instantiator
{
id: fontRepeater
model: dapFontNames.length
FontLoader
{
source: dapFontPath + dapFontNames[index]
}
Component.onCompleted: dapProjectFonts = getFonts(fontRepeater)
}
//To associate dapProjectFonts property with FontLoader objects
function getFonts(fontRepeater)
{
var fonts = [];
for(var i = 0; i < fontRepeater.count; i++)
{
fonts[i] = fontRepeater.objectAt(i)
}
return fonts;
}
}
......@@ -13,3 +13,4 @@ RESOURCES += \
......@@ -27,5 +27,6 @@
<file>widgets/DapScrollViewHandling.qml</file>
<file>widgets/DapMessageBox.qml</file>
<file>widgets/DapMessageBoxForm.ui.qml</file>
<file>DapFont.qml</file>
</qresource>
</RCC>
......@@ -30,7 +30,7 @@ Button
///@detalis indentTextRight: Indentation of the text from the right edge.
property int indentTextRight
///@detalis fontButton Font setting.
property alias fontButton:buttonText.font
property alias fontButton: buttonText.font
///@detalis horizontalAligmentText Horizontal alignment.
property alias horizontalAligmentText:buttonText.horizontalAlignment
///@detalis colorBackgroundButton This property overrides the background color.
......
......@@ -149,6 +149,7 @@ DapComboBoxForm
return model.get(rowIndex)[modelRole];
}
function updateMainRow(fm, cbIndex, cbCurrentIndex, elTextArray, width)
{
if(cbIndex === cbCurrentIndex)
......
......@@ -10,6 +10,11 @@ Rectangle
property alias dapContentText: contentText
property alias dapButtonOk: buttonOk
///@details fontMessage Font setting.
property font fontMessage
///@details fontButtonText Font setting.
property font fontButtonText
layer.enabled: true
layer.effect:
DropShadow
......@@ -38,10 +43,7 @@ Rectangle
anchors.right: parent.right
anchors.leftMargin: 30 * pt
anchors.rightMargin: 30 * pt
font.pixelSize: 16 * pt
font.family: "Roboto"
font.styleName: "Normal"
font.weight: Font.Normal
font: fontMessage
color: "#FFFFFF"
}
}
......@@ -67,10 +69,7 @@ Rectangle
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: buttonOk.top
font.pixelSize: 16 * pt
font.family: "Roboto"
font.styleName: "Normal"
font.weight: Font.Normal
font: fontMessage
color: "#070023"
wrapMode: Text.WordWrap
}
......@@ -87,11 +86,9 @@ Rectangle
colorBackgroundHover: "#D51F5D"
colorButtonTextNormal: "#FFFFFF"
colorButtonTextHover: "#FFFFFF"
fontButton.pixelSize: 14 * pt
fontButton: fontButtonText
borderColorButton: "#FFFFFF"
borderWidthButton: 0
fontButton.family: "Roboto"
fontButton.weight: Font.Normal
horizontalAligmentText:Qt.AlignCenter
colorTextButton: "#FFFFFF"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment