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

styling for system tray #1244

Open
3 tasks done
sagax opened this issue Dec 13, 2024 · 3 comments
Open
3 tasks done

styling for system tray #1244

sagax opened this issue Dec 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@sagax
Copy link

sagax commented Dec 13, 2024

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

Examples of styling the context menu for icons in the system tray are needed, please

Reproducing the issue

No response

Expected behaviour

No response

Additional context

No response

Platform and environment

Linux, X11, Xmonad, openSUSE Tumbleweed, X64

@sagax sagax added the bug Something isn't working label Dec 13, 2024
@hypernova7
Copy link
Contributor

#1161 (comment)

@hypernova7
Copy link
Contributor

Here is something more complete, these styles can be used to add an arrow to the options that are submenus

menu {
  padding: 5px;
  background-color: $black;
  color: #fff;

  menuitem {
    border-radius: 5px;
    padding: 8px 12px;
    background-color: transparent;
    transition: all .2s ease;

    &:backdrop {
      background-color: $background;
    }
  }

  menuitem arrow {
    min-width: 16px;
    min-height: 16px;

    &:dir(ltr) {
      -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
      margin-left: 10px;
      margin-right: 0;
    }
  }

  menuitem:hover {
    background-color: $blue;
  }
}

@sagax
Copy link
Author

sagax commented Dec 20, 2024

It's work, thanks.

It would be great to create a page about widget styling and widget parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants