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

[FEATURE] Customizing GTK Window Borders with CSS for Enhanced Window Decorations #296

Open
wesleey opened this issue Nov 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@wesleey
Copy link

wesleey commented Nov 26, 2024

I made a modification to the GTK window decorations by adding borders and customizing their appearance using CSS. The main changes include defining custom properties for the border width, color, and radius, which are applied to various types of windows. Here's a breakdown of the modifications:

/*********************
* Window Decorations *
*********************/
window {
  --wm-border-width: 3px;
  --wm-border-color: #6272a4;
  --wm-border-radius: 12px;
}
window.maximized {
  border: var(--wm-border-width) solid var(--wm-border-color);
  border-radius: var(--wm-border-radius);
}
window:not(.maximized) {
  border: none;
}
window.csd {
  margin: 0px;
  border-radius: var(--wm-border-radius);
  border: var(--wm-border-width) solid var(--wm-border-color);
}
window.csd.popup,
window.csd.dialog.message {
  border-radius: 12px;
  border: 4px solid var(--wm-border-color);
}
window.solid-csd {
  margin: 0;
  padding: 4px;
  border-radius: var(--wm-border-radius);
  border: 4px solid var(--wm-border-color);
}
window.popup,
window.ssd {
  border-radius: 12px;
  border: 4px solid var(--wm-border-color);
}

WhatsApp Image 2024-11-26 at 00 48 44

image

@wesleey wesleey added the enhancement New feature or request label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant