Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/maskeditor/BrushSettingsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
{{ t('maskEditor.brushSettings') }}
</h3>

<button
class="w-45 h-7.5 border-none bg-black/20 border border-[var(--border-color)] text-[var(--input-text)] font-sans text-[15px] pointer-events-auto transition-colors duration-100 hover:bg-[var(--p-overlaybadge-outline-color)] hover:border-none"
@click="resetToDefault"
>
<button :class="textButtonClass" @click="resetToDefault">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to change it to use the TextButton component?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. Will switch to TextButton and push the changes. Thanks for the heads-up.

{{ t('maskEditor.resetToDefault') }}
</button>

Expand Down Expand Up @@ -99,6 +96,9 @@ import SliderControl from './controls/SliderControl.vue'

const store = useMaskEditorStore()

const textButtonClass =
'h-7.5 w-32 rounded-[10px] border border-[var(--p-form-field-border-color)] text-[var(--input-text)] font-sans pointer-events-auto transition-colors duration-100 bg-[var(--comfy-menu-bg)] hover:bg-secondary-background-hover'

const setBrushShape = (shape: BrushShape) => {
store.brushSettings.type = shape
}
Expand Down
Loading