add:增加独立最小化计时器透明开关 - #659
Open
chenjei2011 wants to merge 3 commits into
Open
Conversation
🤖 Augment PR SummarySummary: Adds a persistent transparency control to the standalone minimized timer window. Changes:
Technical Notes: The window continues to use the existing Modern WPF theme resources for its default background and foregrounds. 🤖 Was this summary useful? React with 👍 or 👎 |
| if(SettingsManager.Settings.Timer.IsOpenTransparency) | ||
| { | ||
| MainBorder.Background = new SolidColorBrush( | ||
| Color.FromArgb(255, 249, 249, 249)//完全不透明 |
There was a problem hiding this comment.
In the dark theme, NewTimerWindowDigitForeground is white, so this opaque #F9F9F9 background makes the timer digits nearly invisible after transparency is disabled. The same contrast regression also occurs when the persisted disabled state is applied at startup.
Severity: medium
Other Locations
Ink Canvas/Windows/NewStyleMinimizedTimerWindow.xaml.cs:38
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
Contributor
Author
There was a problem hiding this comment.
这个确实没想到,等我下星期回来再改把
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能描述
在独立最小化计时窗口右下方有个小灯泡,可切换透明和不透明
需求动机
有时候透明窗口不好查看想切换为不透明的
前端更改(看样式)
右下角增加小灯泡的切换透明的开关
后端更改
在
Settings.json增加isOpenTransparency这个bool值持久化存储最小化计时窗口的透明状态,ToggleTransparency_Click函数用于响应按钮