Skip to content

fix: font weight stepper delta=100#372

Merged
eagleoflqj merged 1 commit into
masterfrom
font-weight
May 16, 2026
Merged

fix: font weight stepper delta=100#372
eagleoflqj merged 1 commit into
masterfrom
font-weight

Conversation

@eagleoflqj
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the configuration UI behavior for font-weight integer options so that the stepper changes values in 100-point “weight” steps (while still supporting arbitrary numeric input), and adds UI tests to cover the updated behavior.

Changes:

  • Added a FontWeight description annotation to font-weight config options so the Swift UI can detect them.
  • Updated IntegerView stepper increment/decrement logic to round font-weight changes to the next/previous 100 boundary.
  • Expanded Appium coverage with a non-numeric input validation check and a dedicated font-weight stepping test.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
webpanel/webpanel.h Introduces FontWeightAnnotation and applies it to font weight options so the UI can treat them specially.
src/config/IntegerView.swift Implements font-weight-aware stepping logic (rounded 100-step changes) and reuses the same logic for button-based steppers.
appium/test_integer.py Adds regression tests for non-numeric integer input handling and for font-weight stepper behavior (100-step rounding/clamping).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

arm64 comparison

No difference.

x86_64 comparison

No difference.

@eagleoflqj eagleoflqj merged commit d399791 into master May 16, 2026
11 checks passed
@eagleoflqj eagleoflqj deleted the font-weight branch May 16, 2026 00:00
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