From 7ca30a313d30e75f72aa23794263da5002109e17 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 2 Feb 2024 12:22:20 +0100 Subject: [PATCH] :bug: Make default border inside --- common/src/app/common/types/shape.cljc | 2 +- frontend/src/app/main/data/workspace/colors.cljs | 2 +- .../app/main/ui/workspace/sidebar/options/menus/stroke.cljs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/types/shape.cljc b/common/src/app/common/types/shape.cljc index 46c2074b6b..2101f90f77 100644 --- a/common/src/app/common/types/shape.cljc +++ b/common/src/app/common/types/shape.cljc @@ -411,7 +411,7 @@ :name "Path" :fills [] :strokes [{:stroke-style :solid - :stroke-alignment :center + :stroke-alignment :inner :stroke-width 2 :stroke-color clr/black :stroke-opacity 1}]}) diff --git a/frontend/src/app/main/data/workspace/colors.cljs b/frontend/src/app/main/data/workspace/colors.cljs index 2dd79469e7..f947d58203 100644 --- a/frontend/src/app/main/data/workspace/colors.cljs +++ b/frontend/src/app/main/data/workspace/colors.cljs @@ -248,7 +248,7 @@ (assoc :stroke-style :solid) (not (contains? new-attrs :stroke-alignment)) - (assoc :stroke-alignment :center) + (assoc :stroke-alignment :inner) :always (d/without-nils))] diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/stroke.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/stroke.cljs index 337882fe97..13a2984a43 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/stroke.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/stroke.cljs @@ -147,7 +147,8 @@ :stroke-cap-end stroke-cap-start} index))))) on-add-stroke (fn [_] - (st/emit! (dc/add-stroke ids {:stroke-style :solid + (st/emit! (dc/add-stroke ids {:stroke-alignment :inner + :stroke-style :solid :stroke-color clr/black :stroke-opacity 1 :stroke-width 1}))