Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vertical Taskbar for Windows 11] customizable clock height #1518

Open
Jerrk opened this issue Feb 11, 2025 · 3 comments
Open

[Vertical Taskbar for Windows 11] customizable clock height #1518

Jerrk opened this issue Feb 11, 2025 · 3 comments
Labels
mod-enhancement New feature or request for a mod

Comments

@Jerrk
Copy link

Jerrk commented Feb 11, 2025

@m417z

Any chance of being able to increase the height of the clock field when using the vertical taskbar?

Image

i know in [Taskbar Clock Customization] you can change the width and height - though only in windows 10, so i'm not sure if its possible for windows 11.

@Jerrk Jerrk added the mod-enhancement New feature or request for a mod label Feb 11, 2025
@m417z
Copy link
Member

m417z commented Feb 14, 2025

@Jerrk I'll consider adding such an option in a future update. For now, you can try modifying the mod's code: disable the existing mod, fork it with the "Fork" button, then find the following line:

double marginValue = -(1000.0 - 40) / 2;

Replace 40 with the desired height. Finally, click "Compile Mod", then "Exit Editing Mode".

@Jerrk
Copy link
Author

Jerrk commented Feb 15, 2025

The margins change but the clock is still hidden behind the margins

Image

@m417z
Copy link
Member

m417z commented Feb 17, 2025

Right, you also need to change 40 in this line:

iconContent.MaxHeight(isDateTimeIcon ? 40 : iconContent.ActualWidth());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod-enhancement New feature or request for a mod
Projects
None yet
Development

No branches or pull requests

2 participants