Skip to content

Commit

Permalink
Reverted fontSize WYSIWYG behavior
Browse files Browse the repository at this point in the history
Should fix #208
  • Loading branch information
Cuperino committed Oct 16, 2023
1 parent 99665a6 commit 97e7f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prompter/PrompterView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ Item {
z: 1
textColor: colorDialog.color
textBackground: highlightDialog.color
//fontSize: (parseInt(prompter.state)===Prompter.States.Editing && !prompter.__wysiwyg) ? (Math.pow(editorToolbar.fontSizeSlider.value/185,4)*185) : (Math.pow(editorToolbar.fontWYSIWYGSizeSlider.value/185,4)*185)*prompter.__vw/10
fontSize: (!prompter.__wysiwyg) ? (Math.pow(editorToolbar.fontSizeSlider.value/185,4)*185) : (Math.pow(editorToolbar.fontWYSIWYGSizeSlider.value/185,4)*185)*prompter.__vw/10
fontSize: (parseInt(prompter.state)===Prompter.States.Editing && !prompter.__wysiwyg) ? (Math.pow(editorToolbar.fontSizeSlider.value/185,4)*185) : (Math.pow(editorToolbar.fontWYSIWYGSizeSlider.value/185,4)*185)*prompter.__vw/10
// fontSize: (!prompter.__wysiwyg) ? (Math.pow(editorToolbar.fontSizeSlider.value/185,4)*185) : (Math.pow(editorToolbar.fontWYSIWYGSizeSlider.value/185,4)*185)*prompter.__vw/10
letterSpacing: fontSize * editorToolbar.letterSpacingSlider.value / 81
wordSpacing: fontSize * editorToolbar.wordSpacingSlider.value / 81
//Math.pow((fontSizeSlider.value*prompter.__vw),3)
Expand Down

0 comments on commit 97e7f16

Please sign in to comment.