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

Highlight border bug in PopupAbsoluteLayout #405

Closed
Sinaaaa opened this issue Dec 26, 2024 · 2 comments · Fixed by #406
Closed

Highlight border bug in PopupAbsoluteLayout #405

Sinaaaa opened this issue Dec 26, 2024 · 2 comments · Fixed by #406

Comments

@Sinaaaa
Copy link

Sinaaaa commented Dec 26, 2024

screenshot_2024122615:4719

This is what
highlight_border=70,
looks like, more normal values don't seem to be doing much at all, though there may be some rectangle shrinking going on, in any case the border thickness does not change, I wanted to try 3 or 4..

This is the whole control unit:

        PopupText(
            text="config.py",
            font='FiraCode Nerd Font Mono SemBd',
            fontsize=14,
            pos_x=10,
            pos_y=10,
            width=100,
            height=23,
            highlight="C1C9EB",
            highlight_method="border",  
            highlight_radius=0,
            highlight_border=70,        
            h_align="center",
            mouse_callbacks={
                "Button1": lazy.spawn("geany -i /home/blablahdasdas/.config/qtile/config.py")
            }            
        ),
@elParaguayo
Copy link
Owner

Can you post the whole popup code please?

@Sinaaaa
Copy link
Author

Sinaaaa commented Dec 26, 2024

from qtile_extras.popup.toolkit import (
    PopupAbsoluteLayout,
#    PopupImage,
    PopupText
)              
              
def show_mymainmenu(qtile):

    controls = [
        PopupText(
            text="config.py",
            font='FiraCode Nerd Font Mono SemBd',
            fontsize=14,
            pos_x=10,
            pos_y=10,
            width=100,
            height=23,
            foreground="dfe1eb",
            highlight="efa17d",
            highlight_method="border",  
            highlight_radius=0,
            highlight_border=70,        
            h_align="center",
            mouse_callbacks={
                "Button1": lazy.spawn("geany -i /home/sdgfdsafsd/.config/qtile/config.py")
            }            
        ),
        PopupText(
            text="qtile.log",
            font='FiraCode Nerd Font Mono SemBd',
            fontsize=14,
            pos_x=10,
            pos_y=40,
            width=100,
            height=23,
            foreground="dfe1eb",            
            highlight="efa17d",
            highlight_method="border",  
            highlight_radius=0,
            highlight_border=70,        
            h_align="center",
            mouse_callbacks={
                "Button1": lazy.spawn("geany -i /home/sdgfdsafsd/.local/share/qtile/qtile.log")
            }            
        ),
        PopupText(
            text="Exit",
            font='FiraCode Nerd Font Mono SemBd',
            fontsize=14,
            pos_x=10,
            pos_y=70,
            width=100,
            height=23,
            foreground="dfe1eb",            
            highlight="efa17d",
            highlight_method="border",  
            highlight_radius=0,
            highlight_border=70,        
            h_align="center",
            mouse_callbacks={
                "Button1": lazy.spawn("")
            }            
        ),        
        
    ]              
              
    layout = PopupAbsoluteLayout(
        qtile,
        x=40,
        y=40,         
        width=120,
        height=100,
        
        border="#C1C9EB",
        border_width=3,
        controls=controls,
        background="04496a",
        
        initial_focus=None,
        close_on_click=True, 
        hide_on_timeout=3,
      
      
        
    )

    layout.show(centered=False, x=35, y=7)   

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

Successfully merging a pull request may close this issue.

2 participants