Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HistoryGui: improve display readability (fontsize and tabWidth) #5861

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

adcxyz
Copy link
Contributor

@adcxyz adcxyz commented Sep 1, 2022

Purpose and Motivation

HistoryGui has not been updated for Qt Guis, and thus had visual problems:
Too small font size and too large tabWidth.
Also, the window name was a bit confusingly "HistoryGui_History",
which this PR clarifies to just say "History".

  • Code is tested
  • All tests are passing
  • This PR is ready for review

@adcxyz adcxyz requested a review from telephon September 1, 2022 08:33
@@ -66,6 +68,8 @@ HistoryGui : JITGui {
};
};
})
.font_(font)
.tabWidth_(font.size * 0.6 * 4) // ca. 4 chars
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better:
"1234".bounds(font).width?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tabWidth_ seems to be a pixel size, according to documentation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that is better, done.

@telephon telephon merged commit d6e4c91 into supercollider:develop Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants