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

Activate a theme #1479

Open
Tyrn opened this issue Feb 12, 2025 · 6 comments
Open

Activate a theme #1479

Tyrn opened this issue Feb 12, 2025 · 6 comments
Labels
question Further information is requested

Comments

@Tyrn
Copy link

Tyrn commented Feb 12, 2025

Question:
Can't use a custom theme. I did everything by the FAQ:

~/.config/com.github.johnfactotum.Foliate/themes> cat faq.json
{
  "label": "Ghostly Mist",
  "light": {
    "fg": "#999999",
    "bg": "#cccccc",
    "link": "#666666"
  },
  "dark": {
    "fg": "#666666",
    "bg": "#333333",
    "link": "#777777"
  }
}

I expected, at least, a new entry in Preferences (<alt>comma) menu. Still just List View/Grid View radio button. What else do I have to do?

Version:

  • Foliate version: 3.2.1
  • OS/Distribution and version: EndeavourOS
  • Desktop environment: Hyprland 0.47.2
WM: Hyprland 0.47.2 (Wayland)
Theme: Adwaita [GTK2/3]
  • Installation method: from the repo
~> pacman -Ss foliate
extra/foliate 3.2.1-1 [installed]
    A simple and modern GTK eBook reader
~>
@Tyrn Tyrn added the question Further information is requested label Feb 12, 2025
@johnfactotum
Copy link
Owner

Foliate needs to be restarted after adding or modifying themes.

@Tyrn
Copy link
Author

Tyrn commented Feb 13, 2025

Something else, unfortunately. Even after restart, I can't see anything like a screenshot from issue #53. It's an old story, of course, but I just can't find a dialog with Font/Theme/Layout, etc.

With <alt>comma menu I have just a List View/Grid View radio button.

UPD

I'm so sorry. I've got Win/Alt interchanged...

@johnfactotum
Copy link
Owner

You mean you can't even change the font settings? Can you post a screenshot? The Font & Layout Settings dialog should look something like this:

Image

@Tyrn
Copy link
Author

Tyrn commented Feb 13, 2025

Yes, now I have this. Apparently, it has nothing to do with

~/.config/com.github.johnfactotum.Foliate/themes> cat faq.json
{
  "label": "Ghostly Mist",
  "light": {
    "fg": "#999999",
    "bg": "#cccccc",
    "link": "#666666"
  },
  "dark": {
    "fg": "#666666",
    "bg": "#333333",
    "link": "#777777"
  }
}

though.

What if I want dark characters on light background? No themes on your screenshot, too.

@johnfactotum
Copy link
Owner

Each theme has light and dark schemes. Light mode/dark mode is a separate setting, available from the View Menu (the "vertical three dots" button on the headerbar when you hover over the top of the window). By default it follows the system setting.

@Tyrn
Copy link
Author

Tyrn commented Feb 13, 2025

Thanks! It does work. I can live with that, but still no custom themes...

UPD

Ah, sorry. The theme is visible. It looks like it takes two restarts to see the changes, but it's probably my lack of attention :)

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

No branches or pull requests

2 participants