Skip to content

Commit 65ef7ba

Browse files
committed
gui: add icon logo
1 parent ef0f78d commit 65ef7ba

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ SRC = $(wildcard src/*.cpp src/query/linux/*.cpp src/query/android/*.cpp s
6060
OBJ = $(SRC:.cpp=.o)
6161
LDFLAGS += -L./$(BUILDDIR)/fmt -lfmt -ldl
6262
CXXFLAGS ?= -mtune=generic -march=native
63-
CXXFLAGS += -fvisibility=hidden -Iinclude -std=c++20 $(VARS) -DVERSION=\"$(VERSION)\" -DLOCALEDIR=\"$(LOCALEDIR)\"
63+
CXXFLAGS += -fvisibility=hidden -Iinclude -std=c++20 $(VARS) -DVERSION=\"$(VERSION)\" -DLOCALEDIR=\"$(LOCALEDIR)\" -DICONPREFIX=\"$(ICONPREFIX)\"
6464

6565
all: genver fmt toml json $(TARGET)
6666

compile_flags.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
-DENABLE_NLS=1
1111
-DPREFIX="/usr"
1212
-DLOCALEDIR="/usr/share/locale"
13+
-DICONPREFIX="/usr/share/pixmaps/customfetch"
1314
-I./useless_stuff/
1415
-I/usr/include/gtkmm-3.0
1516
-I/usr/lib/gtkmm-3.0/include

customfetch.desktop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[Desktop Entry]
22
Name=Customfetch
3-
Comment=Highly customizable and fast fetch program
3+
Comment=Highly customizable and fast neofetch-like program
44
Type=Application
55
Exec=customfetch-gui
66
Terminal=false
77
Categories=Viewer;GTK;
8-
Icon=lookswitcher
8+
Icon=customfetch/Thumbnail.png
99
Keywords=customfetch;cufetch

src/gui.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ Window::Window(const Config& config, const colors_t& colors, const std::string_v
149149
set_title("customfetch - Higly customizable and fast neofetch like program");
150150
set_default_size(1000, 600);
151151
set_position(Gtk::WIN_POS_CENTER_ALWAYS);
152+
set_icon_from_file(ICONPREFIX "/customfetch/Thumbnail.png");
152153

153154
debug("Window::Window analyzing file");
154155
std::ifstream f(path.data());

0 commit comments

Comments
 (0)