Changing the font size for the file picker in Portal-LXQT (which is part of the LXQt desktop environment) involves modifying the QT settings since LXQt and its components, including Portal, use the Qt toolkit.
Here's a step-by-step guide to change the font size for the file picker in Portal-LXQT:
Method 1: Using LXQt Settings
-
Open LXQt Settings:
- Click on the LXQt Settings icon in your system menu or type
lxqt-config in your application launcher.
-
Navigate to Font Settings:
- In the LXQt Settings window, find and select Font.
-
Adjust the Font Size:
- Here you can adjust the General Font Size. Increasing this value will affect the font size across LXQt applications, including Portal.
- Click Apply to save the changes
-
Specific Application Settings (if available):
- Some LXQt settings modules allow you to set fonts for specific applications. Look for an option to set fonts for Portal specifically. If it exists you can change the font size there.
- If there is no specific setting for Portal you will need to use one of the other methods below.
Method 2: Modifying the Qt Configuration File
If the LXQt settings do not provide granular control over the Portal file picker, you can directly modify the Qt configuration file.
-
Open a Terminal:
-
Create/Edit the Qt Configuration File:
-
Add/Modify the Font Settings:
-
Save and Close the File:
- Save the changes and exit the text editor.
-
Restart Portal:
Method 3: Environment Variable
You can also set the font size using an environment variable. This method is temporary and will last until you close the session.
-
Open a Terminal
-
Set the QT_SCALE_FACTOR environment variable
export QT_SCALE_FACTOR=1.2
This will scale up the UI by 20%. You can adjust the value to your preference.
-
Start Portal from the Terminal
portal-lxqt &
Method 4: CSS File
You can create a custom Qt style sheet to change the font size.
-
Create a Qt Style Sheet File:
-
Add CSS to Change Font Size:
-
Apply the Style Sheet:
By following one of these methods you should be able to change the font size for the file picker in Portal-LXQT.