elementary / stylesheet

The GTK Stylesheet for elementary OS
https://elementary.io
GNU General Public License v3.0
320 stars 74 forks source link

Gtk.FileChooserDialog: Serif is used for Japanese texts in the sorting buttons instead of sans-serif in Flatpak apps #1120

Closed ryonakano closed 2 years ago

ryonakano commented 2 years ago

What Happened?

Similar to #1099

The labels of the sorting buttons in Gtk.FileChooserDialog is shown in the serif font in the Flatpak apps on Japanese environment:

Screenshot from 2021-12-01 08-53-58

Steps to Reproduce

Simply open a Gtk.FileChooserDialog in a Flatpak app in Japanese environment and see the sorting buttons. But I prepared a code to test this issue to make things clarify.

  1. Clone this repository and switch to file-chooser-test
  2. Build the app using flatpak-builder build-dir --user --install --force-clean com.github.ryonakano.file-chooser-test.yml
  3. Run the app using LANGUAGE=ja flatpak run com.github.ryonakano.file-chooser-test
  4. Click "Open Gtk.FileChooserDialog". You can see the sorting buttons in the file list uses serif font for its label

Expected Behavior

The labels of the sorting buttons in Gtk.FileChooserDialog should always uses sans-serif to display Japanese texts in its label, like this:

Screenshot from 2021-12-01 08-51-09

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

N/A

Hardware Info