forked from AkkomaGang/akkoma-fe
radii v1 fixes
This commit is contained in:
parent
754d71ec19
commit
1059d9b602
2 changed files with 7 additions and 10 deletions
|
@ -438,15 +438,11 @@ export default {
|
||||||
|
|
||||||
if (!this.keepRoundness) {
|
if (!this.keepRoundness) {
|
||||||
this.clearRoundness()
|
this.clearRoundness()
|
||||||
// TODO optimize this
|
Object.entries(radii).forEach(([k, v]) => {
|
||||||
this.btnRadiusLocal = radii.btn
|
// 'Radius' is kept mostly for v1->v2 localstorage transition
|
||||||
this.inputRadiusLocal = radii.input
|
const key = k.endsWith('Radius') ? k.split('Radius')[0] : k
|
||||||
this.checkboxRadiusLocal = radii.checkbox
|
this[key + 'RadiusLocal'] = v
|
||||||
this.panelRadiusLocal = radii.panel
|
})
|
||||||
this.avatarRadiusLocal = radii.avatar
|
|
||||||
this.avatarAltRadiusLocal = radii.avatarAlt
|
|
||||||
this.tooltipRadiusLocal = radii.tooltip
|
|
||||||
this.attachmentRadiusLocal = radii.attachment
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.keepShadows) {
|
if (!this.keepShadows) {
|
||||||
|
|
|
@ -233,7 +233,8 @@ const generateColors = (input) => {
|
||||||
|
|
||||||
const generateRadii = (input) => {
|
const generateRadii = (input) => {
|
||||||
const radii = Object.entries(input.radii || {}).filter(([k, v]) => v).reduce((acc, [k, v]) => {
|
const radii = Object.entries(input.radii || {}).filter(([k, v]) => v).reduce((acc, [k, v]) => {
|
||||||
acc[k] = v
|
const key = k.endsWith('Radius') ? k.split('Radius')[0] : k
|
||||||
|
acc[key] = v
|
||||||
return acc
|
return acc
|
||||||
}, {
|
}, {
|
||||||
btn: 4,
|
btn: 4,
|
||||||
|
|
Loading…
Reference in a new issue