From: Jean-Philippe Bruyère Date: Thu, 1 Jul 2021 21:38:09 +0000 (+0200) Subject: wip X-Git-Tag: v0.9.5-beta~13 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=a4386e4844dbb85b804770d936b2d47c7584d258;p=jp%2Fcrow.git wip --- diff --git a/Crow/Crow.csproj b/Crow/Crow.csproj index 29aca878..d5d50114 100644 --- a/Crow/Crow.csproj +++ b/Crow/Crow.csproj @@ -23,7 +23,7 @@ True true $(NoWarn);1591;1587;1570;1572;1573;1574 - DESIGN_MODE;MEASURE_TIME;_DEBUG_HIGHLIGHT_FOCUS + MEASURE_TIME;_DEBUG_HIGHLIGHT_FOCUS false false @@ -60,15 +60,21 @@ $(DefineConstants);DEBUG_LOG - + + $(DefineConstants);DEBUG_STATS + + + $(DefineConstants);DESIGN_MODE + + - Crow.%(Filename).template + Crow.%(Filename)%(Extension) diff --git a/Crow/Default.style b/Crow/Default.style index 9f206629..5c88c062 100644 --- a/Crow/Default.style +++ b/Crow/Default.style @@ -25,28 +25,25 @@ MenuBackground = "Jet"; InactiveTabItem = "DarkGrey"; -Button, CheckBox, RadioButton, ComboBox, Expandable, -MessageBox, Popper, Slider, Spinner, TextBox { - //Focusable = "true"; - Foreground="${ControlForeground}"; - Height = "Fit"; - Background = "${ControlBackground}"; - CornerRadius = "${ControlCornerRadius}"; - Margin="0"; +Border { + BorderWidth = "${ControlBorderWidth}"; + Foreground = "${ControlBorderColor}"; + Margin = "${ControlInsideMargin}"; } -Border { Margin = "1"; } - CheckBox { Caption = "CheckBox"; } RadioButton { Caption = "RadioButton"; } Expandable { Caption = "Expandable"; } Popper { Caption = "Popper";} -GroupBox { Caption = "Group Box"; } +GroupBox { + Caption = "Group Box"; + Foreground = "${ControlForeground}"; +} Control { Margin="${ControlInsideMargin}"; Spacing="3"; - //Foreground = "${ControlForeground}"; + Foreground = "${ControlForeground}"; //MouseEnter = "{Foreground=${ControlCaptionHoverColor}}"; //MouseLeave = "{Foreground=${ControlForeground}}"; } @@ -77,7 +74,7 @@ Wrapper { Button { Caption = "Button"; MinimumSize = "50,22"; - Height = "22"; + Height = "Fit"; Width = "Fit"; } Label { @@ -96,6 +93,8 @@ TextBox { Foreground = "Black"; CursorColor = "Black"; Focusable = "True"; + Width = "Inherit"; + Height = "Inherit"; //Text = "TextBox"; Margin = "1"; } @@ -105,6 +104,7 @@ Menu { Height = "Fit"; Width = "Stretched"; VerticalAlignment = "Top"; + UseLoadingThread = "false"; //SelectionBackground = "${ControlHighlight}"; //SelectionColoring = "false"; } @@ -116,6 +116,7 @@ MenuItem { Foreground = "${ControlForeground}"; MouseEnter = "{Background=${ControlHighlight}}"; MouseLeave = "{Background=${MenuBackground}}"; + UseLoadingThread = "false"; //SelectionBackground = "${ControlHighlight}"; //SelectionBackground = "Transparent"; //SelectionColoring = "false"; @@ -238,8 +239,8 @@ TxtInFileDialog { CheckBoxAlt { Template= "#Crow.CheckBox2.template"; Background = "Transparent"; - Checked="{Background=Grey;Foreground=LightGrey;}"; - Unchecked = "{Background=Transparent;Foreground=DimGrey;}"; + Checked="{Background=Grey};{Foreground=LightGrey}"; + Unchecked = "{Background=Transparent};{Foreground=DimGrey}"; } ArrowBut { @@ -262,6 +263,7 @@ ScrollBar { Foreground="Transparent"; Background="Onyx"; Width = "14"; + Height = "Inherit"; CornerRadius = "0"; } HScrollBar { @@ -269,7 +271,7 @@ HScrollBar { Maximum = "0"; Value = "0"; Height = "14"; - Width = "Stretched"; + Width = "Inherit"; Orientation = "Horizontal"; } EnumSelector { @@ -309,4 +311,18 @@ TableHeaderLabel { Margin = "1"; //Background = "Jet"; Foreground = "LightGrey"; +} + +Button, CheckBox, RadioButton, ComboBox, Expandable, +MessageBox, Popper, Slider, Spinner, TextBox, NumericControl { + //Focusable = "true"; + Foreground="${ControlForeground}"; + Height = "Fit"; + Background = "${ControlBackground}"; + CornerRadius = "${ControlCornerRadius}"; + Margin="0"; + BubbleMouseEvent="false"; +} +TemplatedControl, GenericStack { + CacheEnabled="true"; } \ No newline at end of file diff --git a/Crow/Icons/crow.png b/Crow/Icons/crow.png new file mode 100644 index 00000000..7b737d04 Binary files /dev/null and b/Crow/Icons/crow.png differ diff --git a/Crow/Templates/Button.template b/Crow/Templates/Button.template index ca1119a5..daa09c6a 100644 --- a/Crow/Templates/Button.template +++ b/Crow/Templates/Button.template @@ -1,10 +1,9 @@ - - diff --git a/Crow/Templates/ContextMenu.template b/Crow/Templates/ContextMenu.template index 5ca0f177..2d41ffbf 100644 --- a/Crow/Templates/ContextMenu.template +++ b/Crow/Templates/ContextMenu.template @@ -1,41 +1,10 @@  - - /> - + - + diff --git a/Samples/common/ui/Interfaces/Experimental/popperTest.crow b/Samples/common/ui/Interfaces/Experimental/popperTest.crow new file mode 100644 index 00000000..c0106c17 --- /dev/null +++ b/Samples/common/ui/Interfaces/Experimental/popperTest.crow @@ -0,0 +1,2 @@ + +