Skip to content

Commit

Permalink
query: battery: add new battery info module for android too
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github committed Jan 25, 2025
1 parent c62619a commit e267365
Show file tree
Hide file tree
Showing 9 changed files with 2,308 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ SRC = $(wildcard src/*.cpp src/query/unix/*.cpp src/query/android/*.cpp src
OBJ = $(SRC:.cpp=.o)
LDFLAGS += -L./$(BUILDDIR)/fmt -lfmt -ldl
CXXFLAGS ?= -mtune=generic -march=native
CXXFLAGS += -fvisibility=hidden -Iinclude -std=c++20 $(VARS) -DVERSION=\"$(VERSION)\" -DBRANCH=\"$(BRANCH)\" -DLOCALEDIR=\"$(LOCALEDIR)\"
CXXFLAGS += -fvisibility=hidden -Iinclude -std=c++20 $(VARS) -DVERSION=\"$(VERSION)\" -DBRANCH=\"$(BRANCH)\" -DPREFIX=\"$(PREFIX)\" -DLOCALEDIR=\"$(LOCALEDIR)\"

all: fmt toml $(TARGET)

Expand Down
4 changes: 2 additions & 2 deletions android/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Chat with us on how\nwe can improve customfetch"
android:textColor="#BBBBBB"
android:textColor="#CCCCCC"
android:textSize="14sp"
android:layout_marginTop="8dp"
app:layout_constraintTop_toBottomOf="@id/_text_discord" />
Expand Down Expand Up @@ -180,7 +180,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Share your screenshots\nand feedback about customfetch"
android:textColor="#BBBBBB"
android:textColor="#CCCCCC"
android:textSize="14sp"
android:layout_marginTop="8dp"
app:layout_constraintTop_toBottomOf="@id/_text_reddit" />
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/xml/root_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<EditTextPreference
app:key="default_args"
app:title="Default command line options"
app:defaultValue="-D /data/user/0/org.toni.customfetch_android/files/ -a small"
app:defaultValue="-D /data/user/0/org.toni.customfetch_android/files -a small"
app:useSimpleSummaryProvider="true" />

<SwitchPreferenceCompat
Expand Down
1 change: 1 addition & 0 deletions compile_flags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
-DDEBUG=1
-DANDROID_APP=0
-DENABLE_NLS=1
-DPREFIX="/usr"
-DLOCALEDIR="/usr/share/locale"
-I./useless_stuff/
-I/usr/include/gtkmm-3.0
Expand Down
Loading

0 comments on commit e267365

Please sign in to comment.