mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #209] [CLOSED] Added indicator widget (tests pending) #256
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#256
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mum4k/termdash/pull/209
Author: @keithknott26
Created: 5/19/2019
Status: ❌ Closed
Base:
devel← Head:indicator📝 Commits (10+)
4446b15Added indicator widget (tests pending)409d326Fixes to the indicator post-reviewd0cfdc9Add files via uploadf615c4bAdd files via upload1dc718bAdded post-review changes257685dUpdate to Off functionc593321Merge devel8db7294Post-review changes for indicator (toggle/on/off)4b05965Update showing what the scaled indicator looks like24e4cadOptions changes to the indicator widget📊 Changes
4 files changed (+555 additions, -0 deletions)
View changed files
➕
widgets/indicator/circle.go(+59 -0)➕
widgets/indicator/indicator.go(+250 -0)➕
widgets/indicator/indicatordemo/indicatordemo.go(+141 -0)➕
widgets/indicator/options.go(+105 -0)📄 Description
This PR Serves to add the indicator branch as well as add the basic indicator functionality. I'd appreciate your comments on whether or not this widget should draw the indicator in a different way. Currently its using a unicode character to designate on/off. Another idea might be to have a rectangle filled with a color representing on/off?
Please run the indicatordemo to see the functionality, it supports text labels underneath similar to the donut however I'm having difficulty getting the text to align properly on resize. It may be just that the container is resizing.
Fixes #216
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.