From 887d508071abf39da21c4af844b52abef22020e6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 1 Mar 2024 23:36:01 +0100 Subject: [PATCH 1/4] bump version --- src/Version.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Version.elm b/src/Version.elm index 4328dc79..55a51233 100644 --- a/src/Version.elm +++ b/src/Version.elm @@ -3,4 +3,4 @@ module Version exposing (version) version : String version = - "24.01.0" + "24.02.1" From e8ef2df2baa5a43b8ee8bf034b8937228d28e7d3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 5 Mar 2024 10:47:23 +0100 Subject: [PATCH 2/4] override hovering on tool icon if color set --- src/View/Graph/Tool.elm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/View/Graph/Tool.elm b/src/View/Graph/Tool.elm index 07bafd8a..fad7a054 100644 --- a/src/View/Graph/Tool.elm +++ b/src/View/Graph/Tool.elm @@ -22,7 +22,16 @@ tool : Config -> Tool msg -> Html msg tool vc t = button [ Css.tool vc t.status - ++ (t.color |> Maybe.map (toCssColor >> color >> List.singleton) |> Maybe.withDefault []) + ++ (t.color + |> Maybe.map toCssColor + |> Maybe.map + (\c -> + [ color c + , Css.hover [ color c ] + ] + ) + |> Maybe.withDefault [] + ) |> css , Locale.string vc.locale t.title |> title , onClick (t.msg t.title) From 77845d5cb628613d07ec387a98f36abcb6efb933 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 6 Mar 2024 14:54:38 +0100 Subject: [PATCH 3/4] allow for disabling switch knob --- src/Switch.elm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Switch.elm b/src/Switch.elm index f05eea64..c2e2ce35 100644 --- a/src/Switch.elm +++ b/src/Switch.elm @@ -18,6 +18,7 @@ type alias Config msg units = , offStyle : List Style , onStyle : List Style , knobStyle : List Style + , disabledStyle : List Style , attributes : List (Attribute msg) } @@ -37,6 +38,9 @@ switch width height unit = [ backgroundColor <| rgb 255 255 255 , property "box-shadow" "0 0 0.25em rgba(0,0,0,0.3)" ] + , disabledStyle = + [ backgroundColor <| rgb 120 120 120 + ] , onStyle = [] , width = width , height = height @@ -123,5 +127,6 @@ toggleCss config = [ left <| calc (pct 100) minus (config.unit config.height) ] ] + , disabled <| [ after <| config.disabledStyle ] , checked config.onStyle ] From ce1c37cda05a9ecc0624582b3707eff79da8e9da Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 6 Mar 2024 14:55:39 +0100 Subject: [PATCH 4/4] update changelog --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c806e85a..a9ea6065 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [24.02.1] - 2024-02-29 + +### Added + +- Disabled style for switch knob + +### Changed + +- Keep custom color on tool icon on hovering + ## [24.02.0] - 2024-02-29 ### Added