[PR #76] [MERGED] feat(shape): persist rectangle corner radius setting #83

Closed
opened 2026-03-03 15:57:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mrgoonie/winshot/pull/76
Author: @mrgoonie
Created: 1/12/2026
Status: Merged
Merged: 1/12/2026
Merged by: @mrgoonie

Base: devHead: goon


📝 Commits (2)

  • 787cfd4 feat(shape): persist rectangle corner radius setting
  • 7ed08f3 Merge remote-tracking branch 'origin/dev' into goon

📊 Changes

3 files changed (+17 additions, -11 deletions)

View changed files

📝 frontend/src/App.tsx (+3 -1)
📝 frontend/wailsjs/go/models.ts (+4 -2)
📝 internal/config/config.go (+10 -8)

📄 Description

Summary

  • Add persistence for rectangle annotation corner radius setting
  • Setting is now saved to config and restored on app startup

Changes

  • internal/config/config.go: Added ShapeCornerRadius field to EditorConfig struct
  • frontend/wailsjs/go/models.ts: Updated TypeScript EditorConfig class with new field
  • frontend/src/App.tsx: Load and save shapeCornerRadius from/to config

Test plan

  • Open app and draw a rectangle with custom corner radius
  • Close and reopen app
  • Verify corner radius setting is preserved

🔄 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/mrgoonie/winshot/pull/76 **Author:** [@mrgoonie](https://github.com/mrgoonie) **Created:** 1/12/2026 **Status:** ✅ Merged **Merged:** 1/12/2026 **Merged by:** [@mrgoonie](https://github.com/mrgoonie) **Base:** `dev` ← **Head:** `goon` --- ### 📝 Commits (2) - [`787cfd4`](https://github.com/mrgoonie/winshot/commit/787cfd432bb4bb3306c53682e809a4067a213fe8) feat(shape): persist rectangle corner radius setting - [`7ed08f3`](https://github.com/mrgoonie/winshot/commit/7ed08f36536f4833efd8447441a730457e2365b2) Merge remote-tracking branch 'origin/dev' into goon ### 📊 Changes **3 files changed** (+17 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/App.tsx` (+3 -1) 📝 `frontend/wailsjs/go/models.ts` (+4 -2) 📝 `internal/config/config.go` (+10 -8) </details> ### 📄 Description ## Summary - Add persistence for rectangle annotation corner radius setting - Setting is now saved to config and restored on app startup ## Changes - `internal/config/config.go`: Added `ShapeCornerRadius` field to `EditorConfig` struct - `frontend/wailsjs/go/models.ts`: Updated TypeScript EditorConfig class with new field - `frontend/src/App.tsx`: Load and save `shapeCornerRadius` from/to config ## Test plan - [ ] Open app and draw a rectangle with custom corner radius - [ ] Close and reopen app - [ ] Verify corner radius setting is preserved --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 15:57:41 +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/winshot#83
No description provided.