Unity panel height and launcher width don't scale with system DPI/font settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Unity |
Fix Released
|
Medium
|
Brandon Schaefer | |
| ubuntu-nexus7 |
Medium
|
Unassigned | ||
| unity (Ubuntu) |
Medium
|
Unassigned |
Bug Description
System Settings > Universal Access > Text size = Larger
or
gsettings set org.gnome.
increasing the value above 1.0 as desired.
Most things scale properly except Unity. Most of Unity's fonts scale correctly, but elements like the launcher, tooltips, and panel don't grow like they should.
I'm not sure if bumping the Gnome font size like this is the right approach or we should be doing something more like:
xrandr --dpi ...
Related branches
- PS Jenkins bot (community): Approve (continuous-integration) on 2014-02-19
- Marco Trevisan (Treviño): Approve on 2014-02-18
-
Diff: 444 lines (+93/-58)4 files modifiedlauncher/Launcher.cpp (+67/-43)
launcher/Launcher.h (+7/-1)
launcher/LauncherController.cpp (+17/-14)
launcher/LauncherControllerPrivate.h (+2/-0)
- PS Jenkins bot (community): Approve (continuous-integration) on 2014-02-19
- Marco Trevisan (Treviño): Needs Fixing on 2014-02-18
- Eleni Maria Stea (community): Approve on 2014-02-17
-
Diff: 1708 lines (+401/-128)44 files modifieddash/DashController.cpp (+1/-1)
dash/DashView.cpp (+17/-12)
hud/HudController.cpp (+6/-4)
launcher/Launcher.cpp (+5/-3)
launcher/LauncherController.cpp (+17/-0)
panel/PanelController.cpp (+15/-2)
panel/PanelController.h (+1/-0)
panel/PanelIndicatorEntryDropdownView.cpp (+1/-1)
panel/PanelIndicatorEntryView.cpp (+73/-14)
panel/PanelIndicatorEntryView.h (+16/-3)
panel/PanelIndicatorsView.cpp (+23/-11)
panel/PanelIndicatorsView.h (+4/-0)
panel/PanelMenuView.cpp (+16/-10)
panel/PanelMenuView.h (+3/-2)
panel/PanelTray.cpp (+6/-4)
panel/PanelTray.h (+3/-1)
panel/PanelView.cpp (+17/-3)
panel/PanelView.h (+2/-0)
panel/StandalonePanel.cpp (+1/-1)
plugins/unityshell/src/unityshell.cpp (+9/-4)
tests/test_em_converter.cpp (+1/-1)
tests/test_launcher_controller.cpp (+6/-6)
tests/test_panel_controller.cpp (+3/-3)
tests/test_panel_indicator_entry_dropdown_view.cpp (+2/-2)
tests/test_panel_menu_view.cpp (+1/-1)
tests/test_panel_style.cpp (+12/-0)
tests/test_raw_pixel.cpp (+3/-3)
unity-shared/EMConverter.cpp (+1/-1)
unity-shared/EMConverter.h (+5/-1)
unity-shared/OverlayWindowButtons.cpp (+1/-1)
unity-shared/PanelStyle.cpp (+20/-13)
unity-shared/PanelStyle.h (+11/-3)
unity-shared/PluginAdapter.cpp (+15/-0)
unity-shared/PluginAdapter.h (+1/-0)
unity-shared/RawPixel.cpp (+2/-2)
unity-shared/RawPixel.h (+1/-1)
unity-shared/StandaloneWindowManager.cpp (+6/-0)
unity-shared/StandaloneWindowManager.h (+1/-0)
unity-shared/UnitySettings.cpp (+23/-8)
unity-shared/UnitySettings.h (+2/-1)
unity-shared/WindowButtonPriv.h (+11/-1)
unity-shared/WindowButtons.cpp (+34/-4)
unity-shared/WindowButtons.h (+2/-0)
unity-shared/WindowManager.h (+1/-0)
tags: | added: mobile nexus7 |
Matt Fischer (mfisch) wrote : | #2 |
Daniel,
Can you explain more about what is not scaling here? I bumped the font size and logged out/in and the dash looks fine. Maybe even take a picture if you can?
Daniel van Vugt (vanvugt) wrote : | #3 |
The fonts grow, but the panel height itself does not. There's no space left around the larger font. Similarly, the launcher width should scale with the DPI setting and not have to be set manually. In the dash, I noticed the larger fonts did not make the icons more spread out, so many icon labels are clipped/truncated.
For a correct implementation of scaling an icon grid to fit larger fonts look at the System Settings dialog (gnome-
Chris Wayne (cwayne18) wrote : | #4 |
@Daniel,
Did you log out/back in after changing the text size? After doing that, my dash looks just fine, but before I logged in/out, the icons were a bit misaligned. Perhaps there is a bug here though that the launcher should scale, but technically that has nothing to do with text size, does it?
Changed in ubuntu-nexus7: | |
status: | New → Incomplete |
Daniel van Vugt (vanvugt) wrote : Re: Unity panel/launcher don't scale with system DPI/font settings | #5 |
OK, forget the dash. It seems better after restarting. But the panel, launcher and tooltips all fail to scale, despite the fact that their fonts do.
summary: |
- Unity panel/launcher/dash don't scale with system DPI/font settings + Unity panel/launcher don't scale with system DPI/font settings |
description: | updated |
Changed in ubuntu-nexus7: | |
status: | Incomplete → New |
summary: |
- Unity panel/launcher don't scale with system DPI/font settings + Unity panel/launcher width don't scale with system DPI/font settings |
Daniel van Vugt (vanvugt) wrote : Re: Unity panel/launcher width don't scale with system DPI/font settings | #6 |
As I mentioned on a couple of mailing lists in July:
"I would hope it's obvious to everyone, but it's not the font you want to explicitly scale. It's everything you want to scale based on the detected monitor DPI. Something like:
panel_height_inches = 0.25
panel_height_pixels =
panel_
And fonts should scale automatically if not already, when you:
gdk_
[http://
Chris Wayne (cwayne18) wrote : | #7 |
I can confirm that the font's look fine, but the launcher does not scale.
Changed in ubuntu-nexus7: | |
status: | New → Confirmed |
Changed in ubuntu-nexus7: | |
importance: | Undecided → Medium |
Changed in unity: | |
importance: | Undecided → Medium |
Changed in unity (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in unity: | |
status: | New → Confirmed |
summary: |
- Unity panel/launcher width don't scale with system DPI/font settings + Unity panel height and launcher width don't scale with system DPI/font + settings |
Changed in unity: | |
milestone: | 7.0.0 → 7.0.1 |
Changed in unity: | |
milestone: | 7.0.1 → 7.2.0 |
Otus (jan-varho) wrote : | #8 |
This makes Unity very difficult to use on retina-like screens, or even a 1080p 13" laptop (160 DPI). If you make fonts large enough to be comfortably visible, text gets clipped.
The default theme's window decorations also look ugly, because the icons are constant size... but that may be a different bug.
Changed in unity: | |
status: | Confirmed → Triaged |
Changed in unity (Ubuntu): | |
status: | Confirmed → Triaged |
description: | updated |
Oscar Tiderman (oscar-tiderman) wrote : | #9 |
Surprised that this is not a more pressing issue, higher resolutions start rolling out on high end laptops all over and Unity is not fit for fight here. I just got a 3200x1800 13.3" laptop and using Unity on this screen is not for the faint of heart. Sure I could scale everything with xrandr but that is just an ugly workaround. Hope to see some fast improvement in this area, make Ubuntu ready for high end as well.
Changed in unity: | |
status: | Triaged → In Progress |
assignee: | nobody → Brandon Schaefer (brandontschaefer) |
Changed in unity (Ubuntu): | |
status: | Triaged → In Progress |
Launchpad Janitor (janitor) wrote : | #10 |
This bug was fixed in the package unity - 7.1.2+14.
---------------
unity (7.1.2+
[ CI bot ]
* Add dynamic HiDPI support to the launcher. (LP: #1075417)
* Add dynamic HiDPI support to the tooltips.
* Add dynamic HiDPI support to the quicklist.
* The decor now scales with the DPI value.
[ Brandon Schaefer ]
* Remove the nux::Property panel_height; Replace it with a function.
Now PanelStyle holds up to monitors::MAX panel_height. Now to get
the panel height for the monitor you just use PanelHeight(int
monitor). Added a signal panel_height_
new panel height, and the monitor that was changed. Its not
currently used. (LP: #1075417)
* UnitySettings: use proper gnome scaling-factor
[ Marco Trevisan (Treviño) ]
* UnitySettings: use proper gnome scaling-factor
* DecoratedWindow: add menu
* DecoratedWindow: make sure that the top_layout exist when setting up
the decorations If there's no layout, then we don't need any
texture. Also this might cause a crash if a window is about to be
mapped but not yet fully framed. (LP: #1281610)
[ Sebastien Bacher ]
* Drop g-s-d override, unity-settings-
-- Ubuntu daily release <email address hidden> Thu, 20 Feb 2014 16:25:16 +0000
Changed in unity (Ubuntu): | |
status: | In Progress → Fix Released |
Owais Lone (loneowais) wrote : | #11 |
I have a HighDPI laptop and would like to help test these changes as I'm running 14.04. I installed the latest unity but it didn't scale automatically. I had to change `/org/gnome/
It still does not scale text in quicklists, panel, tooltips, alt-tab and dash. Rest of the Gnome apps (Gtk3) scale perfectly well.
Changed in unity: | |
status: | In Progress → Fix Committed |
Stephen M. Webb (bregma) wrote : | #12 |
Fix Released in Unity Unity 7.2.0.
Changed in unity: | |
status: | Fix Committed → Fix Released |
I'd be surprised if this was not a duplicate... :)