[PR #276] [MERGED] Improving the button widget. #295

Closed
opened 2026-03-03 16:23:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mum4k/termdash/pull/276
Author: @mum4k
Created: 11/28/2020
Status: Merged
Merged: 11/28/2020
Merged by: @mum4k

Base: develHead: 243-button-improvements


📝 Commits (10+)

  • 891a672 WIP: Button can be configured to accept multiple keys as triggers.
  • 3a0d044 Allow button to specify multiple trigger keys.
  • 1925141 Updating CHANGELOG.
  • ce3adfb Button can be drawn without the shadow and animation.
  • 7364471 Button can be drawn without horizontal padding around its text.
  • 0643120 Button's support for cell options on each text cell.
  • cf9554a Renaming WriteOptions to TextOptions.
  • 31c7a24 Button now supports separate color values for text chunks.
  • bb95f53 Merge branch 'devel' into 243-form-demo
  • de41768 Merge branch 'devel' into 243-form-demo

📊 Changes

5 files changed (+1235 additions, -99 deletions)

View changed files

📝 CHANGELOG.md (+20 -1)
📝 widgets/button/button.go (+149 -29)
📝 widgets/button/button_test.go (+874 -48)
📝 widgets/button/options.go (+107 -21)
widgets/button/text_options.go (+85 -0)

📄 Description

  • Button can be drawn without the shadow and animation.
  • Button can be drawn without horizontal padding around its text.
  • Button's support for cell options on each text cell.
  • Button's support for different cell options in each of the main states (up, up and focused, down).
  • Button can now be triggered by different global and focused keys.

Works on #243.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mum4k/termdash/pull/276 **Author:** [@mum4k](https://github.com/mum4k) **Created:** 11/28/2020 **Status:** ✅ Merged **Merged:** 11/28/2020 **Merged by:** [@mum4k](https://github.com/mum4k) **Base:** `devel` ← **Head:** `243-button-improvements` --- ### 📝 Commits (10+) - [`891a672`](https://github.com/mum4k/termdash/commit/891a6727164019d46a8d812c99dd81512e2f417b) WIP: Button can be configured to accept multiple keys as triggers. - [`3a0d044`](https://github.com/mum4k/termdash/commit/3a0d044a4dece30061f52b37a5815b37f7623357) Allow button to specify multiple trigger keys. - [`1925141`](https://github.com/mum4k/termdash/commit/1925141c663dbf2a7de84bfd6705bfbe9df90039) Updating CHANGELOG. - [`ce3adfb`](https://github.com/mum4k/termdash/commit/ce3adfb0841dd63ff14e21fc53cf795a4b127f5f) Button can be drawn without the shadow and animation. - [`7364471`](https://github.com/mum4k/termdash/commit/73644716a5312ca0cf9e8773db3873100dd3a5db) Button can be drawn without horizontal padding around its text. - [`0643120`](https://github.com/mum4k/termdash/commit/06431206971f77b13d3b0a2119f16972219438fd) Button's support for cell options on each text cell. - [`cf9554a`](https://github.com/mum4k/termdash/commit/cf9554ae9f7c51eb21f298f3016c9cce2524f6c8) Renaming WriteOptions to TextOptions. - [`31c7a24`](https://github.com/mum4k/termdash/commit/31c7a24041c6c38c7a3ef64ff5dce15df3ba783b) Button now supports separate color values for text chunks. - [`bb95f53`](https://github.com/mum4k/termdash/commit/bb95f538ca3281c548e719c48560c065c9b7e730) Merge branch 'devel' into 243-form-demo - [`de41768`](https://github.com/mum4k/termdash/commit/de41768dbcd28f37b9f718d7020926b87aaf7200) Merge branch 'devel' into 243-form-demo ### 📊 Changes **5 files changed** (+1235 additions, -99 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+20 -1) 📝 `widgets/button/button.go` (+149 -29) 📝 `widgets/button/button_test.go` (+874 -48) 📝 `widgets/button/options.go` (+107 -21) ➕ `widgets/button/text_options.go` (+85 -0) </details> ### 📄 Description - Button can be drawn without the shadow and animation. - Button can be drawn without horizontal padding around its text. - Button's support for cell options on each text cell. - Button's support for different cell options in each of the main states (up, up and focused, down). - Button can now be triggered by different global and focused keys. Works on #243. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:23:45 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termdash#295
No description provided.