roundness control
This commit is contained in:
parent
a2a58dc082
commit
d787fb1a60
|
@ -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 ColorInput from 'src/components/color_input/color_input.vue'
|
||||||
import PaletteEditor from 'src/components/palette_editor/palette_editor.vue'
|
import PaletteEditor from 'src/components/palette_editor/palette_editor.vue'
|
||||||
import OpacityInput from 'src/components/opacity_input/opacity_input.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 TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx'
|
||||||
import Tooltip from 'src/components/tooltip/tooltip.vue'
|
import Tooltip from 'src/components/tooltip/tooltip.vue'
|
||||||
import ContrastRatio from 'src/components/contrast_ratio/contrast_ratio.vue'
|
import ContrastRatio from 'src/components/contrast_ratio/contrast_ratio.vue'
|
||||||
|
@ -72,6 +73,7 @@ export default {
|
||||||
ColorInput,
|
ColorInput,
|
||||||
PaletteEditor,
|
PaletteEditor,
|
||||||
OpacityInput,
|
OpacityInput,
|
||||||
|
RoundnessInput,
|
||||||
ContrastRatio,
|
ContrastRatio,
|
||||||
Preview,
|
Preview,
|
||||||
VirtualDirectivesTab
|
VirtualDirectivesTab
|
||||||
|
@ -347,6 +349,8 @@ export default {
|
||||||
exports.isBackgroundColorPresent = isElementPresent(null, 'background', '#FFFFFF')
|
exports.isBackgroundColorPresent = isElementPresent(null, 'background', '#FFFFFF')
|
||||||
exports.editedOpacity = getEditedElement(null, 'opacity')
|
exports.editedOpacity = getEditedElement(null, 'opacity')
|
||||||
exports.isOpacityPresent = isElementPresent(null, 'opacity', 1)
|
exports.isOpacityPresent = isElementPresent(null, 'opacity', 1)
|
||||||
|
exports.editedRoundness = getEditedElement(null, 'roundness')
|
||||||
|
exports.isRoundnessPresent = isElementPresent(null, 'roundness', 0)
|
||||||
exports.editedTextColor = getEditedElement('Text', 'textColor')
|
exports.editedTextColor = getEditedElement('Text', 'textColor')
|
||||||
exports.isTextColorPresent = isElementPresent('Text', 'textColor', '#000000')
|
exports.isTextColorPresent = isElementPresent('Text', 'textColor', '#000000')
|
||||||
exports.editedTextAuto = getEditedElement('Text', 'textAuto')
|
exports.editedTextAuto = getEditedElement('Text', 'textAuto')
|
||||||
|
|
|
@ -286,6 +286,14 @@
|
||||||
<Tooltip :text="$t('settings.style.themes3.editor.include_in_rule')">
|
<Tooltip :text="$t('settings.style.themes3.editor.include_in_rule')">
|
||||||
<Checkbox v-model="isOpacityPresent" />
|
<Checkbox v-model="isOpacityPresent" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
<RoundnessInput
|
||||||
|
v-model="editedRoundness"
|
||||||
|
:disabled="!isRoundnessPresent"
|
||||||
|
:label="$t('settings.style.themes3.editor.roundness')"
|
||||||
|
/>
|
||||||
|
<Tooltip :text="$t('settings.style.themes3.editor.include_in_rule')">
|
||||||
|
<Checkbox v-model="isRoundnessPresent" />
|
||||||
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
key="shadow"
|
key="shadow"
|
||||||
|
|
|
@ -792,6 +792,8 @@
|
||||||
"icon_color": "Icon color",
|
"icon_color": "Icon color",
|
||||||
"link_color": "Link color",
|
"link_color": "Link color",
|
||||||
"contrast": "Text contrast",
|
"contrast": "Text contrast",
|
||||||
|
"roundness": "Roundness",
|
||||||
|
"opacity": "Opacity",
|
||||||
"border_color": "Border color",
|
"border_color": "Border color",
|
||||||
"include_in_rule": "Add to rule",
|
"include_in_rule": "Add to rule",
|
||||||
"test_string": "TEST",
|
"test_string": "TEST",
|
||||||
|
|
Loading…
Reference in a new issue