Skip to content

Commit

Permalink
Finally show the app icon in the toolbar again (#93)
Browse files Browse the repository at this point in the history
* Show the app icon in the toolbar again

* Update logo file

* Completely remove app name in toolbar

* Show/hide title based on rotation, reading a custom theme for that

---------

Co-authored-by: Raphael Michel <[email protected]>
  • Loading branch information
robbi5 and raphaelm committed Jul 18, 2024
1 parent daebd27 commit 8e8bdac
Show file tree
Hide file tree
Showing 26 changed files with 89 additions and 264 deletions.
45 changes: 45 additions & 0 deletions img/ic_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 0 additions & 89 deletions img/logo_white.svg

This file was deleted.

89 changes: 0 additions & 89 deletions img/logo_white_v1.svg

This file was deleted.

33 changes: 7 additions & 26 deletions img/sizes.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
mkdir -p ../pretixdroid/pretixdroid/app/res/drawable-ldpi/
mkdir -p ../pretixdroid/app/src/main/res/drawable-mdpi/
mkdir -p ../pretixdroid/app/src/main/res/drawable-hdpi/
mkdir -p ../pretixdroid/app/src/main/res/drawable-xhdpi/
mkdir -p ../pretixdroid/app/src/main/res/drawable-xxhdpi/
mkdir -p ../pretixdroid/app/src/main/res/drawable-xxxhdpi/

for f in ic_*.svg; do
echo $f;
inkscape -zf $f -w 36 -e ../pretixdroid/app/res/drawable-ldpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 48 -e ../pretixdroid/app/src/main/res/drawable-mdpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 72 -e ../pretixdroid/app/src/main/res/drawable-hdpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 96 -e ../pretixdroid/app/src/main/res/drawable-xhdpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 144 -e ../pretixdroid/app/src/main/res/drawable-xxhdpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 192 -e ../pretixdroid/app/src/main/res/drawable-xxxhdpi/$(echo $f | sed s/svg/png/);
for f in ic_logo.svg; do
echo $f-export-
inkscape -z $f -w 48 --export-type=PNG --export-filename=../pretixscan/app/src/main/res/drawable-mdpi/$(echo $f | sed s/svg/png/);
inkscape -z $f -w 72 --export-type=PNG --export-filename=../pretixscan/app/src/main/res/drawable-hdpi/$(echo $f | sed s/svg/png/);
inkscape -z $f -w 96 --export-type=PNG --export-filename=../pretixscan/app/src/main/res/drawable-xhdpi/$(echo $f | sed s/svg/png/);
inkscape -z $f -w 144 --export-type=PNG --export-filename=../pretixscan/app/src/main/res/drawable-xxhdpi/$(echo $f | sed s/svg/png/);
inkscape -z $f -w 192 --export-type=PNG --export-filename=../pretixscan/app/src/main/res/drawable-xxxhdpi/$(echo $f | sed s/svg/png/);
done;

for f in logo*.svg; do
echo $f;
inkscape -zf $f -w 225 -e ../pretixdroid/app/src/main/res/drawable-ldpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 300 -e ../pretixdroid/app/src/main/res/drawable-mdpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 450 -e ../pretixdroid/app/src/main/res/drawable-hdpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 600 -e ../pretixdroid/app/src/main/res/drawable-xhdpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 900 -e ../pretixdroid/app/src/main/res/drawable-xxhdpi/$(echo $f | sed s/svg/png/);
inkscape -zf $f -w 1200 -e ../pretixdroid/app/src/main/res/drawable-xxxhdpi/$(echo $f | sed s/svg/png/);
done;

1 change: 0 additions & 1 deletion pretixscan/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ dependencies {

implementation 'com.louiscad.splitties:splitties-toast:3.0.0'
implementation 'com.github.traex.rippleeffect:library:1.3'
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
implementation 'com.github.kizitonwose:CalendarView:1.0.4'

implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
Expand Down
Loading

0 comments on commit 8e8bdac

Please sign in to comment.