最大化

This commit is contained in:
2026-03-06 21:08:50 +08:00
parent 6c514df84e
commit de161899d6
10 changed files with 894 additions and 11 deletions

View File

@@ -328,10 +328,10 @@ namespace CMLeonOS.Gui.UILib
internal override void Render()
{
Clear(_background);
if (Text == string.Empty)
{
Clear(_background);
DrawRectangle(0, 0, Width, Height, Color.Gray);
DrawString(PlaceholderText, PlaceholderForeground, 0, 0);
@@ -352,7 +352,6 @@ namespace CMLeonOS.Gui.UILib
for (int i = markedLinesBegin; i <= markedLinesEnd; i++)
{
int lineY = (i * fontHeight) - scrollY;
if (lineY < 0) continue;
if (lineY > Height) break;