Skip to content

Fg color issue of newly added items  #3219

Closed

Description

@aksr

Describe the bug

Foreground color of the newly added items is white (as if selected) on white background.
Text is only visible if selected (via blue background color) and/or (dimly visible) if on a alternate line.
Moving to other items, foreground color stays white (default fg color for selection).

Expected behavior

After moving selection to some other item(s),
fg color of newly added items should be of normal fg color (in my case: black)

Version, OS and Environment
Latest git version (12.0.0-6-gd0a75768), Arch Linux

Additional info
If, for example, preferences are confirmed (via Apply button),
the fg color of selection, suddenly is black (not respecting current setting).
I was trying to see if the problem is local, haven't found the cause.

Btw, if I set fg color of selection to be yellow, and I noticed the item's fg color stays yellow even if no longer selected.

Activity

  1. changed the title [-]Color issue of newly added items[/-] [+]Fg color issue of newly added items [/+] on Sep 30, 2025
  2. aksr commented on Sep 30, 2025

    @aksr
    Author

    The problem with copyq not obeying sel_fg color of newly-added items persists even in 11.0.0``, but not in 10.0.0`.

  3. hluk commented on Oct 1, 2025

    @hluk
    Owner

    Screenshot would be helpful.

    Do the items contain HTML? You can check with F4 shortcut.

  4. aksr commented on Oct 1, 2025

    @aksr
    Author

    No, plain text.

  5. hluk commented on Oct 2, 2025

    @hluk
    Owner

    Can you share your theme configuration? Use the "Save Theme" button in Appearance settings.

  6. aksr commented on Oct 2, 2025

    @aksr
    Author
    [General]
    alt_bg=#e9e7e3
    alt_item_css=
    bg=#ffffff
    css=
    css_template_items=items
    css_template_main_window=main_window
    css_template_menu=menu
    css_template_notification=notification
    cur_item_css="\n    ;border: 0.1em solid ${sel_bg}"
    edit_bg=#ffffff
    edit_fg=#000000
    edit_font="Sans Serif,9,-1,5,50,0,0,0,0,0"
    fg=#000000
    find_bg=#ff0
    find_fg=#000
    find_font="Sans Serif,9,-1,5,50,0,0,0,0,0"
    font="Sans Serif,9,-1,5,50,0,0,0,0,0"
    font_antialiasing=true
    hover_item_css=
    icon_size=16
    item_css=
    item_spacing=
    menu_bar_css="\n    ;background: ${bg}\n    ;color: ${fg}"
    menu_bar_disabled_css="\n    ;color: ${bg - #666}"
    menu_bar_selected_css="\n    ;background: ${sel_bg}\n    ;color: ${sel_fg}"
    menu_css="\n    ;border-top: 0.08em solid ${bg + #333}\n    ;border-left: 0.08em solid ${bg + #333}\n    ;border-bottom: 0.08em solid ${bg - #333}\n    ;border-right: 0.08em solid ${bg - #333}"
    notes_bg=#ffffdc
    notes_css=
    notes_fg=#000000
    notes_font="Sans Serif,9,-1,5,50,0,0,0,0,0"
    notification_bg=#ffaa00
    notification_fg=#000000
    notification_font="Sans Serif,9,-1,5,50,0,0,0,0,0"
    num_fg=#000000
    num_font="Sans Serif,9,-1,5,50,0,0,0,0,0"
    num_margin=2
    num_sel_fg=
    search_bar="\n    ;background: ${edit_bg}\n    ;color: ${edit_fg}\n    ;border: 1px solid ${alt_bg}\n    ;margin: 2px"
    search_bar_focused="\n    ;border: 1px solid ${sel_bg}"
    sel_bg=#000080
    sel_fg=#ffffff
    sel_item_css=
    show_number=true
    show_scrollbars=true
    style_main_window=false
    tab_bar_css="\n    ;background: ${bg - #222}"
    tab_bar_item_counter="\n    ;color: ${fg - #044 + #400}\n    ;font-size: 6pt"
    tab_bar_scroll_buttons_css="\n    ;background: ${bg - #222}\n    ;color: ${fg}\n    ;border: 0"
    tab_bar_sel_item_counter="\n    ;color: ${sel_bg - #044 + #400}"
    tab_bar_tab_selected_css="\n    ;padding: 0.5em\n    ;background: ${bg}\n    ;border: 0.05em solid ${bg}\n    ;color: ${fg}"
    tab_bar_tab_unselected_css="\n    ;border: 0.05em solid ${bg}\n    ;padding: 0.5em\n    ;background: ${bg - #222}\n    ;color: ${fg - #333}"
    tab_tree_css="\n    ;color: ${fg}\n    ;background-color: ${bg}"
    tab_tree_item_counter="\n    ;color: ${fg - #044 + #400}\n    ;font-size: 6pt"
    tab_tree_sel_item_counter="\n    ;color: ${sel_fg - #044 + #400}"
    tab_tree_sel_item_css="\n    ;color: ${sel_fg}\n    ;background-color: ${sel_bg}"
    tool_bar_css="\n    ;color: ${fg}\n    ;background-color: ${bg}\n    ;border: 0"
    tool_button_css="\n    ;background-color: transparent"
    tool_button_pressed_css="\n    ;background: ${sel_bg}"
    tool_button_selected_css="\n    ;background: ${sel_bg - #222}\n    ;color: ${sel_fg}\n    ;border: 1px solid ${sel_bg}"
    use_system_icons=true
    
  7. hluk commented on Oct 3, 2025

    @hluk
    Owner

    Thanks. I think there is some problem with missing update to redraw the item after selected or maybe even items.css stylesheet installed with the app. But it is more likely problem with the update, because sometimes the colors look OK. 🤔

  8. added a commit that references this issue on Oct 3, 2025
    e94d48c
  9. hluk commented on Oct 3, 2025

    @hluk
    Owner

    #3230 seems to fix the problem, not entirely sure why, but setting the stylesheet on the item itself triggers the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions