Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • xfce4-timer-plugin xfce4-timer-plugin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Panel PluginsPanel Plugins
  • xfce4-timer-pluginxfce4-timer-plugin
  • Merge requests
  • !2

Request automatic widget length

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged cryptogopher requested to merge cryptogopher/xfce4-timer-plugin:resize-widget-to-fit-progressbar-nicely into master Sep 10, 2020
  • Overview 1
  • Commits 1
  • Pipelines 4
  • Changes 1

Previously widget length was set to panel size which resulted in a lot of forced, unconfigurable empty space around progress bar.

The thickness of progress bar and amount of empty space around it can be configured in gtk.css. So there is no need to configure it from plugin settings.

It would be nice to include details how to do configuration though. But I'm not sure where it should go and whether https://docs.xfce.org/panel-plugins/xfce4-timer-plugin is an appropriate place.

Sample configuration:

#xfce4-timer-plugin-16 progressbar.vertical trough,
#xfce4-timer-plugin-16 progressbar.vertical progress {
  min-width: 8px;
  margin-left: 4px;
  margin-right: 4px;
}
#xfce4-timer-plugin-16 progressbar.horizontal trough,
#xfce4-timer-plugin-16 progressbar.horizontal progress {
  min-height: 8px;
  margin-top: 4px;
  margin-bottom: 4px;
}
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: resize-widget-to-fit-progressbar-nicely