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

Requests for new keys on the Settings portal #1591

Open
orowith2os opened this issue Jan 21, 2025 · 5 comments
Open

Requests for new keys on the Settings portal #1591

orowith2os opened this issue Jan 21, 2025 · 5 comments
Labels

Comments

@orowith2os
Copy link

orowith2os commented Jan 21, 2025

The Settings portal is a fair bit limited, between most keys being under the org.gnome namespace, or being nonexistent entirely. This issue is meant to keep track of requests for new standardized keys from Linux desktops (like GNOME/GTK and KDE/QT).

Keys that might be useful right now are:

Keys we should have:

Current efforts for new keys:

@orowith2os orowith2os added the bug label Jan 21, 2025
@nicolasfella
Copy link
Contributor

I've opened https://bugreports.qt.io/browse/QTBUG-133044 to gather input from the Qt side

@orowith2os
Copy link
Author

I appreciate the participation from QT, thanks :)

@RushingAlien
Copy link

RushingAlien commented Mar 1, 2025

Keys for font settings would be good for accessibility, especially font size and scale-factor. X11 apps has xsettings to listen to for these settings, on wayland there's no such standard, even tho the settings portal documentation for the Settings Portal states

This interface provides read-only access to a small number of standardized host settings required for toolkits similar to XSettings. It is not for general purpose settings.

This is apparent when you use a font scale-factor (can be set in GNOME's accessibility settings as "Large Text"), it'll work on every app when on X11, but on Wayland—with the app/toolkit's wayland backend—some apps do not respect the setting because the lack of font setting keys. Affects:

  • Blender
  • Qt
  • Chromium/Electron
  • Wine

For each app/toolkit on this list, the case is on their x11 backend font settings are followed, both in xorg and xwayland. But on Wayland, it (font settings) is not followed.

Other font setting are important too, such as hinting, subpixel AA, subpixel ordering, font choice—for document, monospace, interface and title—and more. It's apparent when you set no font AA in GNOME and just see non-GTK and non-Firefox apps just still having AA (Wayland).

Please edit "font and text settings" into your useful key list.

@orowith2os
Copy link
Author

I've added font settings to my list, and did some reordering. A good place to start for these is to look at how toolkits make use of the fonts, ask what they expect from a font setting, and propose a key (or several) for them.

@RushingAlien
Copy link

GTK font settings as found in gsettings/dconf and the org.gnome.desktop.interface settings portal interface:

  • "document-font-name"
  • "font-antialiasing"
  • "monospace-font-name"
  • "font-rendering"
  • "text-scaling-factor"
  • "font-rgba-order"
  • "font-hinting"
  • "font-name"

Font setting keys under x11's xsettings:

  • xft-antialias
  • xft-dpi—this equates to GTK's "text-scaling-factor" with default of 96(1x), 120 would be 1.25x scale)
  • xft-hinting
  • xft-hintstyle
  • xft-rgba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants