onagre-launcher / onagre

A general purpose application launcher for X and wayland inspired by rofi/wofi and alfred
MIT License
511 stars 27 forks source link

Setting Icon Themes doesn't work #50

Closed VarLad closed 1 year ago

VarLad commented 1 year ago

Describe the bug In themes.scss, only setting --icon-theme: "Papirus" works, for others I just get a black bocx

Config

.onagre {
  background: #d6d6d6;
  color: #000000;
  --icon-theme: "Adwaita";
  --icon-size: 24;
  border-radius: 8%;
  border-color: #d6d6d6;
  border-width: 4px;
  padding: 5px;

  .container {
    .rows {
      --height: fill-portion 6;
      .row {
        --width: 392;

        .icon {
          padding-top: 4px;
        }

        .category-icon {
          padding-left: 5px;
          --icon-size: 11;
        }

        .title {
          font-size: 18px;
        }

        .description {
          font-size: 12px;
        }
      }

      .row-selected {
        --width: 392;
        border-radius: 8%;
        background:  #c0c0c0;

        .icon {
          padding-top: 4px;
        }

        .category-icon {
          padding-left: 5px;
          --icon-size: 11;
        }

        .title {
          font-size: 20px;
        }

        .description {
          font-size: 12px;
        }
      }
    }

    .search {
      border-radius: 5%;
      background: #ffffff;
      --height: fill-portion 1;
      padding: 4px;
      .input {
        font-size: 20px;
      }
    }

    .scrollable {
      width: 2px;
      border-radius: 5%;
      background: #c0c0c0;
      .scroller {
        width: 4px;
        color: #a1a1a1;
      }
    }
  }
}

To Reproduce Build latest release of pop-launcher and latest git of onagre

Expected behavior It should use the Adwaita, Breeze etc icons.

Screenshots image

Window manager (please complete the following information):

Additional context It would also be nice if we could just make it use the system default Icons in the themes.scss file

vsuharnikov commented 1 year ago

Make sure, you have the Papirus folder in one of these directories https://github.com/oknozor/freedestkop-icons/blob/main/src/theme/paths.rs#L10

VarLad commented 1 year ago

This particular issue was a container issue.