Enable high DPI scaling
This commit is contained in:
parent
c3dfb523b6
commit
2fe8c80aa5
4
TODO.md
4
TODO.md
|
@ -93,7 +93,7 @@
|
|||
- Replies
|
||||
- Messages editing and redaction
|
||||
- Code highlighting
|
||||
- Adapt shortcuts flicking speed to font size and DPI
|
||||
- Adapt shortcuts flicking speed to font size
|
||||
|
||||
- EditAccount page:
|
||||
- Device settings
|
||||
|
@ -131,8 +131,6 @@
|
|||
- https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#creating-a-custom-style
|
||||
- icons.preferredPack: accept multiple values
|
||||
- Find icon packs in user data dir
|
||||
- Correctly implement uiScale/fontScale + ctrl+-= keys
|
||||
- See `QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling)`
|
||||
- See [Text.fontSizeMode](https://doc.qt.io/qt-5/qml-qtquick-text.html#fontSizeMode-prop)
|
||||
- Way to round avatar corners to allow box radius
|
||||
- If avatar is set, name color from average color?
|
||||
|
|
|
@ -17,6 +17,8 @@ int main(int argc, char *argv[]) {
|
|||
QApplication::setApplicationName("harmonyqml");
|
||||
QApplication::setApplicationDisplayName("HarmonyQML");
|
||||
QApplication::setApplicationVersion("0.2.3");
|
||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
|
||||
|
||||
QQmlEngine engine;
|
||||
QQmlContext *objectContext = new QQmlContext(engine.rootContext());
|
||||
|
|
Loading…
Reference in New Issue
Block a user