Skip to content

feat(okular): Added menu and background options#582

Merged
magnouvean merged 3 commits into
nix-community:trunkfrom
FelixSmtt:feature-okular-options
Jul 7, 2026
Merged

feat(okular): Added menu and background options#582
magnouvean merged 3 commits into
nix-community:trunkfrom
FelixSmtt:feature-okular-options

Conversation

@FelixSmtt

Copy link
Copy Markdown
Contributor

Changes

  • Added sidebar, menubar and full screen options
  • Added useCustomBackgroundColor and backgroundColor
  • Layout options are configured in okularrc
  • Comments are partially based on KDE Documentation if they were available

Testing

  • I tested out the options using Okular 25.08.3.

@magnouvean magnouvean left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@magnouvean magnouvean merged commit 1663116 into nix-community:trunk Jul 7, 2026
1 check failed
@FelixSmtt FelixSmtt deleted the feature-okular-options branch July 7, 2026 22:28
Comment thread modules/apps/okular.nix
};

"MainWindow" = {
"MenuBar" = applyIfSet (if gen.showMenuBar then "Enabled" else "Disabled");

@folliehiyuki folliehiyuki Jul 8, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applyIfSet is redundant here, since the value (Enabled or Disabled) is never null. I also get evaluation error when showMenuBar option isn't set, since if conditional statement doesn't accept a null value.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#634 seems to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants