diff options
author | Daniel d'Andrada <daniel.dandrada@luxoft.com> | 2018-11-14 17:13:14 +0100 |
---|---|---|
committer | Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com> | 2018-11-15 15:32:18 +0000 |
commit | 44b5570cbdc6c10c8858083e86aba4826e4c29b5 (patch) | |
tree | 913ea8896ec05fc4a8c5e03186ce9fe5437182cb /apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml | |
parent | 2f562d0f6c180313a1b2843d4762a832e3f87361 (diff) |
[style] Move dp() from NeptuneStyle to the new Sizes attached property
And also the related properties scale and fontSize*
This makes that feature style-agnostic, enabling Neptune 3 to use different
styles.
Change-Id: Ib61e5e17ec4d8c1dc6bae94f3286745ed4d84b0a
Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
Diffstat (limited to 'apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml')
-rw-r--r-- | apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml b/apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml index 154f0ef8..c896ff7a 100644 --- a/apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml +++ b/apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml @@ -32,7 +32,7 @@ import QtQuick 2.10 import QtQuick.Controls 2.3 import shared.utils 1.0 -import shared.com.pelagicore.styles.neptune 3.0 +import shared.Sizes 1.0 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.2 @@ -58,7 +58,7 @@ ColumnLayout { icon.name: model.name ? (checked ? "ic-" + model.name.toLowerCase() + "_ON" : "ic-" + model.name.toLowerCase() + "_OFF") : "" display: AbstractButton.TextUnderIcon text: qsTr(model.name) - font.pixelSize: NeptuneStyle.fontSizeXS + font.pixelSize: Sizes.fontSizeXS onClicked: { root.toolClicked(model.name, index); root.currentTool = model.name; |