mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-30 05:34:06 +02:00
Make theme-based color tweaks in edit-design plugin optional
This commit is contained in:
parent
e44f4bb003
commit
dc76ae9d1f
Resources/Plugins/edit-design
@ -16,6 +16,7 @@ enabled(){
|
|||||||
hideTweetActions: true,
|
hideTweetActions: true,
|
||||||
moveTweetActionsToRight: true,
|
moveTweetActionsToRight: true,
|
||||||
revertReplies: false,
|
revertReplies: false,
|
||||||
|
themeColorTweaks: true,
|
||||||
roundedScrollBars: false,
|
roundedScrollBars: false,
|
||||||
smallComposeTextSize: false,
|
smallComposeTextSize: false,
|
||||||
optimizeAnimations: true,
|
optimizeAnimations: true,
|
||||||
@ -320,15 +321,19 @@ enabled(){
|
|||||||
this.css.insert(".txt-base-smallest:not(.icon), .txt-base-largest:not(.icon) { font-size: "+this.config.fontSize+" !important }");
|
this.css.insert(".txt-base-smallest:not(.icon), .txt-base-largest:not(.icon) { font-size: "+this.config.fontSize+" !important }");
|
||||||
this.css.insert(".avatar { border-radius: "+this.config.avatarRadius+"% !important }");
|
this.css.insert(".avatar { border-radius: "+this.config.avatarRadius+"% !important }");
|
||||||
|
|
||||||
switch(TD.settings.getTheme()){
|
if (this.config.themeColorTweaks){
|
||||||
case "dark":
|
switch(TD.settings.getTheme()){
|
||||||
this.css.insert(".app-content, .app-columns-container { background-color: #444448 }");
|
case "dark":
|
||||||
break;
|
this.css.insert(".app-content, .app-columns-container { background-color: #444448 }");
|
||||||
|
this.css.insert(".column-drag-handle { opacity: 0.5 }");
|
||||||
case "light":
|
this.css.insert(".column-drag-handle:hover { opacity: 1 }");
|
||||||
this.css.insert(".scroll-styled-v::-webkit-scrollbar-thumb, .scroll-styled-h::-webkit-scrollbar-thumb { background-color: #d2d6da }");
|
break;
|
||||||
this.css.insert(".app-columns-container.scroll-styled-h::-webkit-scrollbar-thumb:not(:hover) { background-color: #a5aeb5 }");
|
|
||||||
break;
|
case "light":
|
||||||
|
this.css.insert(".scroll-styled-v::-webkit-scrollbar-thumb, .scroll-styled-h::-webkit-scrollbar-thumb { background-color: #d2d6da }");
|
||||||
|
this.css.insert(".app-columns-container.scroll-styled-h::-webkit-scrollbar-thumb:not(:hover) { background-color: #a5aeb5 }");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.config.hideTweetActions){
|
if (this.config.hideTweetActions){
|
||||||
|
@ -98,6 +98,10 @@
|
|||||||
<label class="txt-uppercase touch-larger-label">
|
<label class="txt-uppercase touch-larger-label">
|
||||||
<b>Design</b>
|
<b>Design</b>
|
||||||
</label>
|
</label>
|
||||||
|
<label class="checkbox">
|
||||||
|
<input data-td-key="themeColorTweaks" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
||||||
|
Theme color tweaks
|
||||||
|
</label>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<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
|
||||||
|
Loading…
Reference in New Issue
Block a user