mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Re-add icon-theme option.
This commit is contained in:
parent
441c511296
commit
c96ebfc2de
6 changed files with 8 additions and 6 deletions
|
@ -68,7 +68,7 @@ Settings config = {
|
|||
/** Command executed on accep-entry-custom for window modus */
|
||||
.window_command = "xkill -id {window}",
|
||||
/** No default icon theme, we search Adwaita and gnome as fallback */
|
||||
.drun_icon_theme = NULL,
|
||||
.icon_theme = NULL,
|
||||
/**
|
||||
* Location of the window.
|
||||
* Enumeration indicating location or gravity of window.
|
||||
|
|
|
@ -199,9 +199,9 @@ Specify the directory where **rofi** should look for plugins.
|
|||
|
||||
Show application icons in drun and window modes.
|
||||
|
||||
`-drun-icon-theme`
|
||||
`-icon-theme`
|
||||
|
||||
Specify icon theme to be used in drun mode if show-icons setting is enabled.
|
||||
Specify icon theme to be used.
|
||||
If not specified default theme from DE is used, *Adwaita* and *gnome* themes act as
|
||||
fallback themes.
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ rofi.window-command: xkill -id {window}
|
|||
! "Window fields to match in window mode" Set from: Default
|
||||
! rofi.window-match-fields: all
|
||||
! "Theme to use to look for icons" Set from: Default
|
||||
! rofi.drun-icon-theme:
|
||||
! rofi.icon-theme:
|
||||
! "Desktop entry fields to match in drun" Set from: Default
|
||||
! rofi.drun-match-fields: name,generic,exec,categories
|
||||
! "Disable history in run/ssh" Set from: File
|
||||
|
|
|
@ -88,7 +88,7 @@ typedef struct
|
|||
/** Window fields to match in window mode */
|
||||
char * window_match_fields;
|
||||
/** Theme for icons */
|
||||
char * drun_icon_theme;
|
||||
char * icon_theme;
|
||||
|
||||
/** Windows location/gravity */
|
||||
WindowLocation location;
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "rofi-icon-fetcher.h"
|
||||
#include "rofi-types.h"
|
||||
#include "helper.h"
|
||||
#include "settings.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
@ -131,6 +132,7 @@ static void rofi_icon_fetcher_worker ( thread_state *sdata, G_GNUC_UNUSED gpoint
|
|||
// this should be fine running in another thread.
|
||||
IconFetcherEntry *sentry = (IconFetcherEntry*) sdata;
|
||||
const gchar *themes[1] = {
|
||||
config.icon_theme,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ static XrmOption xrmOptions[] = {
|
|||
"Command executed on accep-entry-custom for window modus", CONFIG_DEFAULT },
|
||||
{ xrm_String, "window-match-fields", { .str = &config.window_match_fields }, NULL,
|
||||
"Window fields to match in window mode", CONFIG_DEFAULT },
|
||||
{ xrm_String, "drun-icon-theme", { .str = &config.drun_icon_theme }, NULL,
|
||||
{ xrm_String, "icon-theme", { .str = &config.icon_theme }, NULL,
|
||||
"Theme to use to look for icons", CONFIG_DEFAULT },
|
||||
|
||||
{ xrm_String, "drun-match-fields", { .str = &config.drun_match_fields }, NULL,
|
||||
|
|
Loading…
Reference in a new issue