mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-30 23:34:09 +02:00
Add animation optimization to edit-design plugin and fix label margin
This commit is contained in:
parent
ffaea6dcbe
commit
e727617bf1
Resources/Plugins/edit-design
@ -11,6 +11,7 @@ enabled(){
|
|||||||
moveTweetActionsToRight: true,
|
moveTweetActionsToRight: true,
|
||||||
smallComposeTextSize: false,
|
smallComposeTextSize: false,
|
||||||
roundedScrollBars: false,
|
roundedScrollBars: false,
|
||||||
|
optimizeAnimations: true,
|
||||||
avatarRadius: 10
|
avatarRadius: 10
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -208,6 +209,11 @@ enabled(){
|
|||||||
this.css.insert(".scroll-styled-h::-webkit-scrollbar-thumb { border-radius: 0 }");
|
this.css.insert(".scroll-styled-h::-webkit-scrollbar-thumb { border-radius: 0 }");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.config.optimizeAnimations){
|
||||||
|
this.css.insert(".app-content { will-change: transform }");
|
||||||
|
this.css.insert(".column-holder { will-change: transform }");
|
||||||
|
}
|
||||||
|
|
||||||
if (this.config.columnWidth[0] === '/'){
|
if (this.config.columnWidth[0] === '/'){
|
||||||
let cols = this.config.columnWidth.slice(1);
|
let cols = this.config.columnWidth.slice(1);
|
||||||
|
|
||||||
|
@ -86,6 +86,16 @@
|
|||||||
<input data-td-key="roundedScrollBars" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
<input data-td-key="roundedScrollBars" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
||||||
Rounded Scroll Bars
|
Rounded Scroll Bars
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<!-- ADVANCED -->
|
||||||
|
|
||||||
|
<label class="txt-uppercase touch-larger-label">
|
||||||
|
<b>Advanced</b>
|
||||||
|
</label>
|
||||||
|
<label class="checkbox">
|
||||||
|
<input data-td-key="optimizeAnimations" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
||||||
|
Optimize Animations (uses more memory for smoother animations)
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="l-column mdl-column">
|
<div class="l-column mdl-column">
|
||||||
@ -174,7 +184,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.td-modal-content label.checkbox {
|
.td-modal-content label.checkbox {
|
||||||
margin: 0 16px 5px 4px;
|
margin: 0 0 5px 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user