From 15374d0d0efdb40b0c3b6c750b4c71bf18ccddd3 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 11 Mar 2015 22:26:51 +0100 Subject: [PATCH] QML Styling --- mix/qml/WebPreview.qml | 10 +++++----- mix/qml/WebPreviewStyle.qml | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mix/qml/WebPreview.qml b/mix/qml/WebPreview.qml index c40bff351..ff21344b6 100644 --- a/mix/qml/WebPreview.qml +++ b/mix/qml/WebPreview.qml @@ -223,7 +223,7 @@ Item { { width: 1 height: parent.height - 10 - color: "#808080" + color: WebPreviewStyle.general.fontName anchors.verticalCenter: parent.verticalCenter } @@ -244,7 +244,7 @@ Item { { width: 1 height: parent.height - 10 - color: "#808080" + color: WebPreviewStyle.general.fontName anchors.verticalCenter: parent.verticalCenter } @@ -278,7 +278,7 @@ Item { { Layout.preferredHeight: 1 Layout.preferredWidth: parent.width - color: "#808080" + color: WebPreviewStyle.general.separatorColor } SplitView @@ -346,7 +346,7 @@ Item { id: expressionInput width: parent.width - 15 height: 20 - font.family: "sans serif" + font.family: WebPreviewStyle.general.fontName font.italic: true font.pointSize: Style.absoluteSize(-3) anchors.verticalCenter: parent.verticalCenter @@ -383,7 +383,7 @@ Item { id: resultTextArea width: expressionPanel.width wrapMode: Text.Wrap - font.family: "sans serif" + font.family: WebPreviewStyle.general.fontName font.pointSize: Style.absoluteSize(-3) backgroundVisible: true style: TextAreaStyle { diff --git a/mix/qml/WebPreviewStyle.qml b/mix/qml/WebPreviewStyle.qml index 551f5a446..231bbe16c 100644 --- a/mix/qml/WebPreviewStyle.qml +++ b/mix/qml/WebPreviewStyle.qml @@ -10,5 +10,7 @@ QtObject { property QtObject general: QtObject { property string headerBackgroundColor: "#f0f0f0" + property string separatorColor: "#808080" + property string fontName: "sans serif" } }