Skip to content

添加了顶部状态栏功能和语法。#925

Open
SoraStr wants to merge 2 commits intoOpenWebGAL:mainfrom
SoraStr:StatusBar
Open

添加了顶部状态栏功能和语法。#925
SoraStr wants to merge 2 commits intoOpenWebGAL:mainfrom
SoraStr:StatusBar

Conversation

@SoraStr
Copy link
Copy Markdown

@SoraStr SoraStr commented Apr 4, 2026

添加了顶部状态栏功能和语法,现在用户可以通过以下语法来调用顶部状态栏:

# 设置状态栏文本
setStatusBar:Chapter 1-1 Another View;

# 隐藏状态框
setStatusBar:none;

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a setStatusBar command and a corresponding UI component to display text at the top of the screen. The changes include Redux state management, SCSS styling, and parser updates. The reviewer suggested several UI improvements, such as reducing the status bar's font size and height, and recommended updating the parser configuration to ensure consistency for commands that proceed to the next line.


.status-bar-content {
color: #2c3e50;
font-size: 3rem;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

font-size: 3rem 对于状态栏文本来说可能过大,通常状态栏建议使用较小的字体以保持界面简洁。建议将其调整为更合适的尺寸,例如 1.2rem1.5rem 之间。

Suggested change
font-size: 3rem;
font-size: 1.5rem;

Comment on lines +6 to +7
height: 10vh;
min-height: 50px;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

状态栏高度设置为 10vh(在 1080p 屏幕上约为 108px),对于一个仅显示单行文本的状态栏来说可能占据了过多的垂直空间。建议考虑减小高度,例如使用固定的像素值或更小的 vh 值。

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