Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K KDE Plasma Framework
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 31
    • Merge requests 31
  • 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
  • FrameworksFrameworks
  • KDE Plasma Framework
  • Merge requests
  • !41

Introduce SwitchButton

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Nate Graham requested to merge ngraham/plasma-framework:introduce-SwitchButton-component into master Jul 19, 2020
  • Overview 12
  • Commits 1
  • Pipelines 0
  • Changes 2

While porting Bluedevil and plasma-nm to PC3, I noticed that both of them were using this control, but with slightly different code, behavior, sizing, etc. Seems like it was copy-pasted from one into the other at some point. So I thought I'd take the opporutnity to extract it into a library component here in plasma-framework.

This also lays the groundwork for replacing the checkbox with a switch at some point in the future once we have a nice-looking switch control.

There are no substantive visual changes compared to the custom versions in the plasna-nm and bluedevil applets

In_plasma-nm_applet

In_Bluetooth_applet

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: introduce-SwitchButton-component