-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskbar.cs
More file actions
32 lines (28 loc) · 953 Bytes
/
Taskbar.cs
File metadata and controls
32 lines (28 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using Cosmos.System.Graphics;
using Cosmos.System.Graphics.Fonts;
using System;
using System.Drawing;
namespace IronOS
{
public class Taskbar
{
public void Draw(Canvas canvas)
{
Pen barPen = new Pen(Color.DarkGray);
Pen textPen = new Pen(Color.White);
// Draw taskbar background (bottom 20px of screen)
for (int y = 580; y < 600; y++)
{
for (int x = 0; x < 800; x++)
{
canvas.DrawPoint(barPen, x, y);
}
}
// Draw live clock in bottom-right corner
string timeStr = DateTime.Now.ToString("HH:mm:ss");
canvas.DrawString(timeStr, PCScreenFont.Default, textPen, 700, 585);
// Optional debug text (bottom-left)
canvas.DrawString("Taskbar", PCScreenFont.Default, textPen, 10, 585);
}
}
}