Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[213_22] Replace focus cyan border with translucent background fill#2888

Open
cc-fuyu wants to merge 1 commit intoMoganLab:mainfrom
cc-fuyu:cc-fuyu/fix-2759-focus-background
Open

[213_22] Replace focus cyan border with translucent background fill#2888
cc-fuyu wants to merge 1 commit intoMoganLab:mainfrom
cc-fuyu:cc-fuyu/fix-2759-focus-background

Conversation

@cc-fuyu
Copy link
Contributor

@cc-fuyu cc-fuyu commented Feb 27, 2026

Fixes #2759

  • Change FOCUS_COLOR from #0ff (opaque cyan) to #0ff1a (translucent cyan)
  • Use draw_selection instead of draw_rectangles for foc_rects under Qt to render a semi-transparent background fill instead of a border

@cc-fuyu cc-fuyu force-pushed the cc-fuyu/fix-2759-focus-background branch from 8b9d997 to ead634f Compare March 4, 2026 05:41
Fixes MoganLab#2759

- Change FOCUS_COLOR from #0ff (opaque cyan) to #00ffff1a (translucent cyan
  with alpha, 9-digit hex format compatible with color_from_name parser)
- In compute_env_rects, use thicken(sel->rs, 0, 2*pixel) instead of
  outlines(sel->rs, pixel) for foc_rects (non-recursive mode) to generate
  filled rectangles rather than border outlines
- Use draw_selection instead of draw_rectangles for foc_rects rendering
  under Qt to render a semi-transparent background fill
@cc-fuyu cc-fuyu force-pushed the cc-fuyu/fix-2759-focus-background branch from ead634f to 27a4acb Compare March 4, 2026 06:07
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.

当光标处于某个结构(如表格单元格、数学公式)时,增加一个淡的背景颜色,去掉现有的青色边框

2 participants