mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-04 17:34:07 +02:00
Add option for larger quote font size to edit-design & update modal layout
This commit is contained in:
parent
093ac1ac40
commit
4704197c09
Resources/Plugins/edit-design
@ -8,7 +8,7 @@ Edit layout & design
|
|||||||
chylex
|
chylex
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
1.1.4
|
1.1.5
|
||||||
|
|
||||||
[website]
|
[website]
|
||||||
https://tweetduck.chylex.com
|
https://tweetduck.chylex.com
|
||||||
|
@ -12,6 +12,7 @@ enabled(){
|
|||||||
moveTweetActionsToRight: true,
|
moveTweetActionsToRight: true,
|
||||||
themeColorTweaks: true,
|
themeColorTweaks: true,
|
||||||
revertIcons: true,
|
revertIcons: true,
|
||||||
|
increaseQuoteTextSize: false,
|
||||||
smallComposeTextSize: false,
|
smallComposeTextSize: false,
|
||||||
optimizeAnimations: true,
|
optimizeAnimations: true,
|
||||||
avatarRadius: 2
|
avatarRadius: 2
|
||||||
@ -366,6 +367,10 @@ enabled(){
|
|||||||
this.css.insert(".tweet-actions > li:nth-child(4) { margin-right: 2px !important }");
|
this.css.insert(".tweet-actions > li:nth-child(4) { margin-right: 2px !important }");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.config.increaseQuoteTextSize){
|
||||||
|
this.css.insert(".quoted-tweet { font-size: 1em !important }");
|
||||||
|
}
|
||||||
|
|
||||||
if (this.config.smallComposeTextSize){
|
if (this.config.smallComposeTextSize){
|
||||||
this.css.insert(".compose-text { font-size: 12px !important; height: 120px !important }");
|
this.css.insert(".compose-text { font-size: 12px !important; height: 120px !important }");
|
||||||
}
|
}
|
||||||
@ -510,6 +515,10 @@ enabled(){
|
|||||||
html[data-td-font] { font-size: ${this.config.fontSize} !important }
|
html[data-td-font] { font-size: ${this.config.fontSize} !important }
|
||||||
.avatar { border-radius: ${this.config.avatarRadius}% !important }
|
.avatar { border-radius: ${this.config.avatarRadius}% !important }
|
||||||
|
|
||||||
|
${this.config.increaseQuoteTextSize ? `
|
||||||
|
.quoted-tweet { font-size: 1em !important }
|
||||||
|
` : ``}
|
||||||
|
|
||||||
${this.config.revertIcons ? `
|
${this.config.revertIcons ? `
|
||||||
@font-face { font-family: 'tweetdeckold'; src: url(\"https://ton.twimg.com/tweetdeck-web/web/assets/fonts/tweetdeck-regular-webfont.5f4ea87976.woff\") format(\"woff\"); font-weight: normal; font-style: normal }
|
@font-face { font-family: 'tweetdeckold'; src: url(\"https://ton.twimg.com/tweetdeck-web/web/assets/fonts/tweetdeck-regular-webfont.5f4ea87976.woff\") format(\"woff\"); font-weight: normal; font-style: normal }
|
||||||
.icon-reply:before{content:"\\f006";font-family:tweetdeckold}
|
.icon-reply:before{content:"\\f006";font-family:tweetdeckold}
|
||||||
|
@ -61,15 +61,13 @@
|
|||||||
<option value="16px">Largest (16px)</option>
|
<option value="16px">Largest (16px)</option>
|
||||||
<option value="custom">Custom</option>
|
<option value="custom">Custom</option>
|
||||||
</select>
|
</select>
|
||||||
|
<label class="checkbox">
|
||||||
<!-- ADVANCED -->
|
<input data-td-key="increaseQuoteTextSize" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
||||||
|
Increase quoted tweet font size
|
||||||
<label class="txt-uppercase touch-larger-label">
|
|
||||||
<b>Advanced</b>
|
|
||||||
</label>
|
</label>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input data-td-key="optimizeAnimations" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
<input data-td-key="smallComposeTextSize" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
||||||
Use more memory for smoother animations
|
Small tweet input font size
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -102,9 +100,15 @@
|
|||||||
<input data-td-key="revertIcons" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
<input data-td-key="revertIcons" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
||||||
Revert icon design
|
Revert icon design
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<!-- ADVANCED -->
|
||||||
|
|
||||||
|
<label class="txt-uppercase touch-larger-label">
|
||||||
|
<b>Advanced</b>
|
||||||
|
</label>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input data-td-key="smallComposeTextSize" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
<input data-td-key="optimizeAnimations" class="js-theme-checkbox touch-larger-label" type="checkbox">
|
||||||
Small compose tweet font size
|
Use more memory for smoother animations
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -163,11 +167,12 @@
|
|||||||
.td-modal-inner-cols .l-column {
|
.td-modal-inner-cols .l-column {
|
||||||
padding: 15px 9px;
|
padding: 15px 9px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
width: 225px;
|
||||||
font-size: 0; /* fix custom font size breaking the modal layout */
|
font-size: 0; /* fix custom font size breaking the modal layout */
|
||||||
}
|
}
|
||||||
|
|
||||||
.td-modal-inner-cols .l-column:nth-child(2) {
|
.td-modal-inner-cols .l-column:nth-child(3) {
|
||||||
width: 250px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.td-modal-inner-full {
|
.td-modal-inner-full {
|
||||||
@ -199,6 +204,14 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.td-modal-content select + label.checkbox {
|
||||||
|
margin-top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.td-modal-content input.js-theme-checkbox, .td-modal-content input.js-theme-radio {
|
||||||
|
margin-top: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Avatar shape */
|
/* Avatar shape */
|
||||||
|
|
||||||
.td-avatar-shape-container {
|
.td-avatar-shape-container {
|
||||||
|
Loading…
Reference in New Issue
Block a user