Skip to content

add:增加独立最小化计时器透明开关 - #659

Open
chenjei2011 wants to merge 3 commits into
InkCanvasForClass:net10from
chenjei2011:net10
Open

add:增加独立最小化计时器透明开关#659
chenjei2011 wants to merge 3 commits into
InkCanvasForClass:net10from
chenjei2011:net10

Conversation

@chenjei2011

Copy link
Copy Markdown
Contributor

功能描述

在独立最小化计时窗口右下方有个小灯泡,可切换透明和不透明

需求动机

有时候透明窗口不好查看想切换为不透明的

前端更改(看样式)

QQ20260913-121307

右下角增加小灯泡的切换透明的开关

注:前端部分均由deepseek v4 flash编写,后端由我编写

后端更改

Settings.json增加isOpenTransparency这个bool值持久化存储最小化计时窗口的透明状态,ToggleTransparency_Click函数用于响应按钮

@augmentcode

augmentcode Bot commented Sep 13, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary: Adds a persistent transparency control to the standalone minimized timer window.

Changes:

  • Introduces a timer.isOpenTransparency setting with a transparent default.
  • Adds a bottom-right light-bulb button that toggles the timer panel background.
  • Applies the saved background mode when the minimized timer window is created.
  • Saves each toggle immediately through SettingsManager.

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 👎

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestion posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

if(SettingsManager.Settings.Timer.IsOpenTransparency)
{
MainBorder.Background = new SolidColorBrush(
Color.FromArgb(255, 249, 249, 249)//完全不透明

@augmentcode augmentcode Bot Sep 13, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个确实没想到,等我下星期回来再改把

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant