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

Gap Between Programs and Tray Bar #139

Open
ghost opened this issue Oct 28, 2021 · 0 comments
Open

Gap Between Programs and Tray Bar #139

ghost opened this issue Oct 28, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 28, 2021

Description

There is a gap between programs and the tray bar when there more programs running than fitting into the program space:
grafik

The gap changes size with the number of programs running.

This is visually very unpleasing.

Probable issue (I didn't take a look into the code)

I guess this happens because the program's button width is calculated like follows:
width_per_program = floor(space/programs.length)

This way a remainder of N pixels occurres.

Probable Solution

The remainder should be added to the programs.

width_per_program = floor(space/programs.length)
remainder = space - wi
for (var program : programs) {
    program.width = width_per_program
    if (remainder > 0) {
        program.width++
        remainder--
    }
}

Maybe the added pixels could be scattered for better visuals.

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

No branches or pull requests

0 participants