From 545552a246bde80e99e7be1ed65e9273cda8410c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Tue, 2 Jun 2020 17:11:59 +0200 Subject: [PATCH] default styling --- Crow/Default.style | 20 +++++---- Crow/Icons/expandable.svg | 12 +++--- Crow/Templates/CheckBox.template | 2 +- Crow/Templates/Expandable.template | 12 +++--- Crow/Templates/Popper.template | 4 +- Crow/Templates/RadioButton.template | 2 +- Crow/Templates/Spinner.template | 6 +-- Crow/src/Widgets/Label.cs | 6 +-- Crow/src/Widgets/Shape.cs | 2 +- Samples/common/ui/Interfaces/Divers/all.crow | 43 +++++++++++++------- Samples/common/ui/templates/colorItem2.crow | 2 +- 11 files changed, 63 insertions(+), 48 deletions(-) diff --git a/Crow/Default.style b/Crow/Default.style index 9309503d..0c188df6 100644 --- a/Crow/Default.style +++ b/Crow/Default.style @@ -3,18 +3,21 @@ ControlBorderColor = "DimGrey"; ControlBorderWidth = "1"; ControlCaptionColor = "LightGrey"; ControlCaptionHoverColor = "White"; - -IconSize = "12"; +ControlCornerRadius = "0"; +ControlInsideMargin = "1"; +IconSize = "11"; IconMargin = "1"; +ToggleIconSize = "16"; Button, CheckBox, RadioButton, ComboBox, Expandable, MessageBox, Popper, Slider, Spinner, TextBox { Focusable = "true"; Height = "Fit"; + Background = "${ControlBackground}"; + CornerRadius = "${ControlCornerRadius}"; + Margin="0"; } -Border { - Foreground = "Grey"; -} + CheckBox { Caption = "CheckBox"; } RadioButton { Caption = "RadioButton"; } Expandable { Caption = "Expandable"; } @@ -22,14 +25,13 @@ Popper { Caption = "Popper";} GroupBox { Caption = "Group Box"; } Control { - Margin="0"; + Margin="${ControlInsideMargin}"; Spacing="3"; } ControlBorder { BorderWidth = "${ControlBorderWidth}"; Foreground = "${ControlBorderColor}"; - Background = "${ControlBackground}"; - CornerRadius = "0"; + Margin = "${ControlInsideMargin}"; } ControlCaption { Foreground = "${ControlCaptionColor}"; @@ -37,7 +39,7 @@ ControlCaption { MouseLeave = "{Foreground=${ControlCaptionColor}}"; } ControlEditableText { - Foreground = "LightGrey"; + Foreground = "${ControlCaptionColor}"; Background = "Transparent"; MinimumSize = "40,10"; Margin = "1"; diff --git a/Crow/Icons/expandable.svg b/Crow/Icons/expandable.svg index 134d02e8..e2bffbc5 100644 --- a/Crow/Icons/expandable.svg +++ b/Crow/Icons/expandable.svg @@ -1,11 +1,11 @@ - + - - - + --> + + - - + + \ No newline at end of file diff --git a/Crow/Templates/CheckBox.template b/Crow/Templates/CheckBox.template index 795c293f..9e2a568f 100644 --- a/Crow/Templates/CheckBox.template +++ b/Crow/Templates/CheckBox.template @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/Crow/Templates/Expandable.template b/Crow/Templates/Expandable.template index ac52ae34..efa24b92 100644 --- a/Crow/Templates/Expandable.template +++ b/Crow/Templates/Expandable.template @@ -1,11 +1,11 @@  - + - - - - + + diff --git a/Crow/Templates/Popper.template b/Crow/Templates/Popper.template index 01b46630..d9b9f1ac 100644 --- a/Crow/Templates/Popper.template +++ b/Crow/Templates/Popper.template @@ -1,9 +1,9 @@