From d787fb1a608f4e8bec7f7f0c01344c4f9d0b6b3b Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 12 Nov 2024 21:10:50 +0200 Subject: [PATCH] roundness control --- src/components/settings_modal/tabs/style_tab/style_tab.js | 4 ++++ .../settings_modal/tabs/style_tab/style_tab.vue | 8 ++++++++ src/i18n/en.json | 2 ++ 3 files changed, 14 insertions(+) diff --git a/src/components/settings_modal/tabs/style_tab/style_tab.js b/src/components/settings_modal/tabs/style_tab/style_tab.js index 7989793d..9b4c5701 100644 --- a/src/components/settings_modal/tabs/style_tab/style_tab.js +++ b/src/components/settings_modal/tabs/style_tab/style_tab.js @@ -11,6 +11,7 @@ import ShadowControl from 'src/components/shadow_control/shadow_control.vue' import ColorInput from 'src/components/color_input/color_input.vue' import PaletteEditor from 'src/components/palette_editor/palette_editor.vue' import OpacityInput from 'src/components/opacity_input/opacity_input.vue' +import RoundnessInput from 'src/components/roundness_input/roundness_input.vue' import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx' import Tooltip from 'src/components/tooltip/tooltip.vue' import ContrastRatio from 'src/components/contrast_ratio/contrast_ratio.vue' @@ -72,6 +73,7 @@ export default { ColorInput, PaletteEditor, OpacityInput, + RoundnessInput, ContrastRatio, Preview, VirtualDirectivesTab @@ -347,6 +349,8 @@ export default { exports.isBackgroundColorPresent = isElementPresent(null, 'background', '#FFFFFF') exports.editedOpacity = getEditedElement(null, 'opacity') exports.isOpacityPresent = isElementPresent(null, 'opacity', 1) + exports.editedRoundness = getEditedElement(null, 'roundness') + exports.isRoundnessPresent = isElementPresent(null, 'roundness', 0) exports.editedTextColor = getEditedElement('Text', 'textColor') exports.isTextColorPresent = isElementPresent('Text', 'textColor', '#000000') exports.editedTextAuto = getEditedElement('Text', 'textAuto') diff --git a/src/components/settings_modal/tabs/style_tab/style_tab.vue b/src/components/settings_modal/tabs/style_tab/style_tab.vue index 638b789a..f95c7aca 100644 --- a/src/components/settings_modal/tabs/style_tab/style_tab.vue +++ b/src/components/settings_modal/tabs/style_tab/style_tab.vue @@ -286,6 +286,14 @@ + + + +