diff --git a/src/AppConfigurator.vue b/src/AppConfigurator.vue
index df05e2446..de0dc74f2 100755
--- a/src/AppConfigurator.vue
+++ b/src/AppConfigurator.vue
@@ -10,7 +10,14 @@
-
FREE THEMES
+
COMPONENT SCALE
+
+
+
+
+
+
+
FREE THEMES
Built-in component themes created by the PrimeVue Theme Designer.
@@ -246,7 +253,9 @@ export default {
},
data() {
return {
- active: false
+ active: false,
+ scale: 14,
+ scales: [12,13,14,15,16]
}
},
outsideClickListener: null,
@@ -300,6 +309,14 @@ export default {
},
isOutsideClicked(event) {
return !(this.$el.isSameNode(event.target) || this.$el.contains(event.target));
+ },
+ decrementScale() {
+ this.scale--;
+ document.documentElement.style.fontSize = this.scale + 'px';
+ },
+ incrementScale() {
+ this.scale++;
+ document.documentElement.style.fontSize = this.scale + 'px';
}
}
}
diff --git a/src/assets/styles/app/_config.scss b/src/assets/styles/app/_config.scss
index 04f2eddf6..f50815259 100644
--- a/src/assets/styles/app/_config.scss
+++ b/src/assets/styles/app/_config.scss
@@ -118,6 +118,27 @@
margin: 0 0 2em 0;
}
+ .config-scale {
+ display: flex;
+ align-items: center;
+ margin: 1rem 0 2rem 0;
+
+ button {
+ margin-right: .5rem;
+ }
+
+ i {
+ margin-right: .5rem;
+ font-size: .75rem;
+ color: var(--text-color-secondary);
+
+ &.scale-active {
+ font-size: 1.25rem;
+ color: $linkColor;
+ }
+ }
+ }
+
.free-themes {
padding: 2em;
color: var(--text-color);