From 695ff05f8b8d607bf26d944803086dfb20ac1306 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 2 Feb 2024 09:31:43 +0300 Subject: [PATCH] inputFilled added to global --- layouts/AppConfigurator.vue | 19 +++++++++++++++++-- layouts/default.vue | 1 + 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/layouts/AppConfigurator.vue b/layouts/AppConfigurator.vue index 0225807dd..da039fb2c 100755 --- a/layouts/AppConfigurator.vue +++ b/layouts/AppConfigurator.vue @@ -11,14 +11,19 @@ +
+ Dark Mode + +
+
Ripple Effect
- Dark Mode - + Input Style +
@@ -354,6 +359,10 @@ export default { visible: false, scale: 14, scales: [12, 13, 14, 15, 16], + inputStyles: [ + { label: 'Outlined', value: 'outlined' }, + { label: 'Filled', value: 'filled' } + ], primaryFocusRing: true, compactMaterial: false }; @@ -414,6 +423,9 @@ export default { onRippleChange(value) { this.$appState.ripple = value; }, + onInputStyleChange(value) { + this.$primevue.config.inputStyle = value; + }, onDarkModeChange() { this.$emit('darkswitch-click'); }, @@ -458,6 +470,9 @@ export default { rippleActive() { return this.$appState.ripple; }, + inputStyle() { + return this.$primevue.config.inputStyle; + }, containerClass() { return [ 'layout-config w-full sm:w-26rem', diff --git a/layouts/default.vue b/layouts/default.vue index 2d4f483c3..6cdf03dc7 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -121,6 +121,7 @@ export default { { 'layout-news-active': this.$appState.newsActive, 'p-ripple-disabled': this.$appState.ripple === false, + 'p-input-filled': this.$primevue.config.inputStyle === 'filled', 'layout-dark': this.$appState.darkTheme, 'layout-light': !this.$appState.darkTheme }