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

Please tell me how to reduce the height of the panel? #335

Open
rediskap opened this issue Feb 3, 2025 · 3 comments
Open

Please tell me how to reduce the height of the panel? #335

rediskap opened this issue Feb 3, 2025 · 3 comments

Comments

@rediskap
Copy link

rediskap commented Feb 3, 2025

Please tell me how to reduce the height of the panel?

@LBCrion
Copy link
Owner

LBCrion commented Feb 4, 2025 via email

@AClon314
Copy link

AClon314 commented Feb 5, 2025

There is no explicit setting for height, instead, you can specify height
for individual items and the height of the bar will adjust accordingly. For
a default config, you'll need to adjust min-height for:

  1. button#startmenu image, button#module image
  2. button#taskbar_item image
  3. button#tray_image image

and if you want to make the bar thinner, you'll probably need to change the
clock widget from using 2 lines to using 1.

Hi @LBCrion , how can I set a global variable to set these 3 parts for convenience? I've tried these but failed:

Set BarHeight = "40px"
button#startmenu image,
button#module image {
  min-height: Str(BarHeight);
  min-width: Str(BarHeight);
  padding: 0px;
  margin: 0px;
  -GtkWidget-valign: center;
  -GtkWidget-vexpand: true;
}
button#taskbar_item image {
  min-width: Str(BarHeight);
  min-height: Str(BarHeight);
  padding-right: 6px;
  -ScaleImage-symbolic: false;
}

@LBCrion
Copy link
Owner

LBCrion commented Feb 7, 2025 via email

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

3 participants