Skip to content

Strang Font Color #25

@ch4xer

Description

@ch4xer

Thanks for your script and I love it so much. But the font color seems to be weried when I add -theme argument in todofish.conf like the following:

ROFI_BIN="$(command -v rofi) -theme ~/.config/rofi/tokyonight.rasi"

and when I run the script by ./todofi.sh, it outputs:

test

As you can see, some item's text color is not corespond with its priority, I try to change the theme file like https://github.com/newmanls/rofi-themes-collection/blob/master/themes/nord.rasi but the result is same. Here is my theme file:

* {
    font:   "JetBrainsMono Nerd Font Bold 20";
      bg0     : #1a1b26;
      bg1     : #1f2335;
      bg2     : #24283b;
      bg3     : #414868;
      fg0     : #c0caf5;
      fg1     : #a9b1d6;
      fg2     : #737aa2;
      red     : #f7768e;
      green   : #9ece6a;
      yellow  : #e0af68;
      blue    : #7aa2f7;
      magenta : #9a7ecc;
      cyan    : #4abaaf;

      accent: @blue;
      urgent: @yellow;

      background-color : transparent;
      text-color       : @fg0;

      margin  : 0;
      padding : 0;
      spacing : 0;
}

window {
    location:   center;
    width:      1000;
    height:     700;

    background-color:   @bg0;
    /*background-image:   url("/home/ch4ser/Media/Pictures/jarvis.jpg", width);*/

    border:         2px;
    border-color: @bg3;
}

inputbar {
    spacing:    8px; 
    padding:    8px;

    border:         2px;
    border-color: @blue;
    background-color:   @bg1;
}

prompt, entry, element-icon, element-text {
    vertical-align: 0.5;
}

prompt {
    text-color: @accent;
}

textbox {
    padding:            8px;
    background-color:   @bg1;
}

listview {
    padding:    4px 0;
    lines:      8;
    columns:    2;

    fixed-height:   false;
}

element {
    padding:    8px;
    spacing:    8px;
}

element normal normal {
    text-color: @fg0;
}

element normal urgent {
    text-color: @urgent;
}

element normal active {
    text-color: @accent;
}

element selected {
    text-color: @bg0;
}

element selected normal, element selected active {
    background-color:   @accent;
}

element selected urgent {
    background-color:   @urgent;
}

element-icon {
    size:   0.8em;
}

element-text {
    text-color: inherit;
}

Finally, thanks for your contribution and patience again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions