Skip to content

Commit e267365

Browse files
committed
query: battery: add new battery info module for android too
1 parent c62619a commit e267365

File tree

9 files changed

+2308
-8
lines changed

9 files changed

+2308
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SRC = $(wildcard src/*.cpp src/query/unix/*.cpp src/query/android/*.cpp src
5757
OBJ = $(SRC:.cpp=.o)
5858
LDFLAGS += -L./$(BUILDDIR)/fmt -lfmt -ldl
5959
CXXFLAGS ?= -mtune=generic -march=native
60-
CXXFLAGS += -fvisibility=hidden -Iinclude -std=c++20 $(VARS) -DVERSION=\"$(VERSION)\" -DBRANCH=\"$(BRANCH)\" -DLOCALEDIR=\"$(LOCALEDIR)\"
60+
CXXFLAGS += -fvisibility=hidden -Iinclude -std=c++20 $(VARS) -DVERSION=\"$(VERSION)\" -DBRANCH=\"$(BRANCH)\" -DPREFIX=\"$(PREFIX)\" -DLOCALEDIR=\"$(LOCALEDIR)\"
6161

6262
all: fmt toml $(TARGET)
6363

android/app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
android:layout_width="wrap_content"
139139
android:layout_height="wrap_content"
140140
android:text="Chat with us on how\nwe can improve customfetch"
141-
android:textColor="#BBBBBB"
141+
android:textColor="#CCCCCC"
142142
android:textSize="14sp"
143143
android:layout_marginTop="8dp"
144144
app:layout_constraintTop_toBottomOf="@id/_text_discord" />
@@ -180,7 +180,7 @@
180180
android:layout_width="wrap_content"
181181
android:layout_height="wrap_content"
182182
android:text="Share your screenshots\nand feedback about customfetch"
183-
android:textColor="#BBBBBB"
183+
android:textColor="#CCCCCC"
184184
android:textSize="14sp"
185185
android:layout_marginTop="8dp"
186186
app:layout_constraintTop_toBottomOf="@id/_text_reddit" />

android/app/src/main/res/xml/root_preferences.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<EditTextPreference
77
app:key="default_args"
88
app:title="Default command line options"
9-
app:defaultValue="-D /data/user/0/org.toni.customfetch_android/files/ -a small"
9+
app:defaultValue="-D /data/user/0/org.toni.customfetch_android/files -a small"
1010
app:useSimpleSummaryProvider="true" />
1111

1212
<SwitchPreferenceCompat

compile_flags.txt

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

0 commit comments

Comments
 (0)