Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K KDE Portal for XDG Desktop
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • KDE Portal for XDG Desktop
  • Merge requests
  • !52

Actually determine light/dark from colorscheme

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Bharadwaj Raju requested to merge work/bharadwaj/determine-light-dark into master Oct 21, 2021
  • Overview 3
  • Commits 2
  • Pipelines 4
  • Changes 1

Uses the same method to calculate that as the Colors KCM. (https://invent.kde.org/plasma/plasma-workspace/-/blob/master/kcms/colors/filterproxymodel.cpp#L106)

Test using:

$ qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read "org.freedesktop.appearance" "color-scheme"

1 = dark, 2 = light

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/bharadwaj/determine-light-dark