Enable high DPI scaling

This commit is contained in:
miruka 2019-12-04 11:49:20 -04:00
parent c3dfb523b6
commit 2fe8c80aa5
2 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@
- Replies - Replies
- Messages editing and redaction - Messages editing and redaction
- Code highlighting - Code highlighting
- Adapt shortcuts flicking speed to font size and DPI - Adapt shortcuts flicking speed to font size
- EditAccount page: - EditAccount page:
- Device settings - Device settings
@ -131,9 +131,7 @@
- https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#creating-a-custom-style - https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#creating-a-custom-style
- icons.preferredPack: accept multiple values - icons.preferredPack: accept multiple values
- Find icon packs in user data dir - Find icon packs in user data dir
- Correctly implement uiScale/fontScale + ctrl+-= keys - See [Text.fontSizeMode](https://doc.qt.io/qt-5/qml-qtquick-text.html#fontSizeMode-prop)
- 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 - Way to round avatar corners to allow box radius
- If avatar is set, name color from average color? - If avatar is set, name color from average color?
- Accent color from background - Accent color from background

View File

@ -17,6 +17,8 @@ int main(int argc, char *argv[]) {
QApplication::setApplicationName("harmonyqml"); QApplication::setApplicationName("harmonyqml");
QApplication::setApplicationDisplayName("HarmonyQML"); QApplication::setApplicationDisplayName("HarmonyQML");
QApplication::setApplicationVersion("0.2.3"); QApplication::setApplicationVersion("0.2.3");
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QQmlEngine engine; QQmlEngine engine;
QQmlContext *objectContext = new QQmlContext(engine.rootContext()); QQmlContext *objectContext = new QQmlContext(engine.rootContext());