ubuntu-touch-coreapps-reviewers team mailing list archive
-
ubuntu-touch-coreapps-reviewers team
-
Mailing list archive
-
Message #08492
Re: [Merge] lp:~mcintire-evan/ubuntu-terminal-app/window-font-size into lp:ubuntu-terminal-app
Finally got some time to look at this, left some replies to your comments
Diff comments:
> === modified file 'src/app/main.cpp'
> --- src/app/main.cpp 2016-01-25 12:37:14 +0000
> +++ src/app/main.cpp 2016-02-13 21:25:20 +0000
> @@ -53,7 +53,7 @@
> {
> QApplication a(argc, argv);
> QQuickView view;
> - view.setResizeMode(QQuickView::SizeRootObjectToView);
> + view.setResizeMode(QQuickView::SizeViewToRootObject);
Changed it to just set the size on startup, that should be the same as how Konsole does it :)
>
> FileIO fileIO;
> view.engine()->rootContext()->setContextProperty("fileIO", &fileIO);
>
> === modified file 'src/app/qml/ubuntu-terminal-app.qml'
> --- src/app/qml/ubuntu-terminal-app.qml 2016-02-07 18:24:56 +0000
> +++ src/app/qml/ubuntu-terminal-app.qml 2016-02-13 21:25:20 +0000
> @@ -12,8 +12,8 @@
> applicationName: "com.ubuntu.terminal"
> automaticOrientation: true
>
> - width: units.gu(90)
> - height: units.gu(55)
> + width: 40 * settings.fontPixelSize()
I changed it to reference terminalPage.terminal.font.pixelSize and reverted the other stuff
Is there a way to get the ratio programmatically? I could just throw in a TODO for when/if we implement changing fonts, but that seems a bit lazy
> + height: 24 * settings.fontPixelSize()
>
> AuthenticationService {
> onDenied: Qt.quit();
--
https://code.launchpad.net/~mcintire-evan/ubuntu-terminal-app/window-font-size/+merge/285285
Your team Ubuntu Terminal Developers is subscribed to branch lp:ubuntu-terminal-app.
References