Further SC theme improvements

This commit is contained in:
SpiritCroc 2020-05-27 17:24:00 +02:00
parent 1d97f79564
commit 70e43ee8a8
14 changed files with 122 additions and 12 deletions

22
graphics/icon_gen.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
mydir="$(dirname "$(realpath "$0")")"
base_out="$mydir/../vector/src/main/res"
file="$mydir/riot_splash_0_green.svg"
dpi=96
base_folder="$mydir/../vector/src/main/res/drawable"
newfile="$(basename "$file" .svg).png"
mkdir -p $base_folder-mdpi
mkdir -p $base_folder-hdpi
mkdir -p $base_folder-xhdpi
mkdir -p $base_folder-xxhdpi
mkdir -p $base_folder-xxxhdpi
inkscape "$file" --export-filename="$base_folder-mdpi/$newfile" -C --export-dpi=$dpi
inkscape "$file" --export-filename="$base_folder-hdpi/$newfile" -C --export-dpi=$(($dpi*3/2))
inkscape "$file" --export-filename="$base_folder-xhdpi/$newfile" -C --export-dpi=$(($dpi*2))
inkscape "$file" --export-filename="$base_folder-xxhdpi/$newfile" -C --export-dpi=$(($dpi*3))
inkscape "$file" --export-filename="$base_folder-xxxhdpi/$newfile" -C --export-dpi=$(($dpi*4))

View file

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
sodipodi:docname="riot_splash_0_green.svg"
id="svg12"
version="1.1"
viewBox="0 0 133.28999 164.931"
height="164.931"
width="133.28999">
<metadata
id="metadata18">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs16" />
<sodipodi:namedview
inkscape:current-layer="svg12"
inkscape:window-maximized="0"
inkscape:window-y="20"
inkscape:window-x="1920"
inkscape:cy="67.581407"
inkscape:cx="-56.285447"
inkscape:zoom="1.9166667"
showgrid="false"
id="namedview14"
inkscape:window-height="1047"
inkscape:window-width="1918"
inkscape:pageshadow="2"
inkscape:pageopacity="0"
guidetolerance="10"
gridtolerance="10"
objecttolerance="10"
borderopacity="1"
bordercolor="#666666"
pagecolor="#ffffff"
inkscape:document-rotation="0" />
<path
id="path4"
fill="#aed581"
d="m 48.849003,47.799006 v 23.297997 l 23.657997,-0.024 c 0.3,0 0.576,-0.009 0.845997,-0.027 6.219,-0.411 11.082,-5.511 11.082,-11.61 0,-6.416997 -5.34,-11.636997 -11.906997,-11.636997 z M 25.455009,162.87299 c -12.920997,0 -23.3969939,-10.239 -23.3969939,-22.869 V 96.42 c -0.084,-0.789 -0.129,-1.593003 -0.129,-2.406003 0,-0.828 0.042,-1.647 0.129,-2.451 V 24.933012 c 0,-12.63 10.4759969,-22.8719969 23.3969939,-22.8719969 H 72.531 c 32.36699,0 58.70099,25.7399939 58.70099,57.3779879 0,30.080997 -24.036,55.223987 -54.719993,57.242987 -1.305,0.087 -2.649,0.132 -3.980997,0.132 l -23.678997,0.024 v 23.169 c 0,12.63 -10.472997,22.869 -23.396994,22.869 z"
style="stroke-width:3" />
<path
id="path6"
stroke="#7cb342"
stroke-width="4.11603"
fill="#00000000"
d="m 48.849003,47.799006 v 23.297997 l 23.657997,-0.024 c 0.3,0 0.576,-0.009 0.845997,-0.027 6.219,-0.411 11.082,-5.511 11.082,-11.61 0,-6.416997 -5.34,-11.636997 -11.906997,-11.636997 z M 25.455009,162.87299 c -12.920997,0 -23.3969939,-10.239 -23.3969939,-22.869 V 24.930012 c 0,-12.63 10.4759969,-22.8719969 23.3969939,-22.8719969 H 72.531 c 32.36699,0 58.70099,25.7399939 58.70099,57.3779879 0,30.080997 -24.036,55.223987 -54.719993,57.242987 -1.305,0.087 -2.649,0.132 -3.980997,0.132 l -23.678997,0.024 v 23.169 c 0,12.63 -10.472997,22.869 -23.396994,22.869 z"
style="fill:#c5e1a5;fill-opacity:1" />
<path
style="fill:none"
id="path8"
stroke="#7cb342"
stroke-width="4.11603"
stroke-linecap="round"
fill="#00000000"
d="M 25.455009,140.00399 V 24.930012 H 72.531 c 19.49699,0 35.30099,15.449997 35.30099,34.505991 0,18.266997 -14.52,33.218994 -32.891993,34.427994 -0.798,0.054 -1.599,0.081 -2.408997,0.081 H 25.455009" />
<path
id="path10"
fill="#7cb342"
d="m 44.733006,11.814012 c 3.587997,5.004 4.964997,11.073 3.878997,17.084997 -1.086,6.015 -4.505997,11.256 -9.629997,14.759997 -10.574997,7.233 -25.205994,4.716 -32.6099909,-5.612997 -3.588,-5.004 -4.965,-11.073 -3.879,-17.087997 1.086,-6.015 4.506,-11.2559999 9.6299969,-14.7599969 10.574997,-7.2329994 25.202994,-4.7159997 32.606994,5.6129969 z M 108.02699,162.86099 c -7.374,0 -14.628,-3.396 -19.181996,-9.747 l -33.065991,-46.125 C 48.363003,96.645 50.931003,82.383 61.512,75.138 72.093,67.887003 86.681994,70.398003 94.09799,80.742 l 33.066,46.12499 c 7.416,10.344 4.848,24.606 -5.733,31.851 -4.086,2.799 -8.769,4.143 -13.407,4.143 z"
style="stroke-width:3" />
</svg>

After

Width:  |  Height:  |  Size: 4 KiB

View file

@ -27,7 +27,7 @@
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme.Light"
android:theme="@style/AppTheme.SC.Light"
tools:replace="android:allowBackup">
<activity

View file

@ -10,23 +10,23 @@
android:fillType="evenOdd"/>
<path
android:pathData="m47.713,42.317v7.766l7.886,-0.008c0.1,0 0.192,-0.003 0.282,-0.009 2.073,-0.137 3.694,-1.837 3.694,-3.87 0,-2.139 -1.78,-3.879 -3.969,-3.879zM39.915,80.675c-4.307,0 -7.799,-3.413 -7.799,-7.623v-14.528c-0.028,-0.263 -0.043,-0.531 -0.043,-0.802 -0,-0.276 0.014,-0.549 0.043,-0.817v-22.21c0,-4.21 3.492,-7.624 7.799,-7.624h15.692c10.789,0 19.567,8.58 19.567,19.126 0,10.027 -8.012,18.408 -18.24,19.081 -0.435,0.029 -0.883,0.044 -1.327,0.044l-7.893,0.008v7.723c0,4.21 -3.491,7.623 -7.799,7.623z"
android:fillColor="#a2ddef"
android:fillColor="#C5E1A5"
android:fillType="evenOdd"/>
<path
android:pathData="m47.713,42.317v7.766l7.886,-0.008c0.1,0 0.192,-0.003 0.282,-0.009 2.073,-0.137 3.694,-1.837 3.694,-3.87 0,-2.139 -1.78,-3.879 -3.969,-3.879zM39.915,80.675c-4.307,0 -7.799,-3.413 -7.799,-7.623v-38.358c0,-4.21 3.492,-7.624 7.799,-7.624h15.692c10.789,0 19.567,8.58 19.567,19.126 0,10.027 -8.012,18.408 -18.24,19.081 -0.435,0.029 -0.883,0.044 -1.327,0.044l-7.893,0.008v7.723c0,4.21 -3.491,7.623 -7.799,7.623z"
android:strokeWidth="1.372009"
android:fillColor="#00000000"
android:strokeColor="#368bd6"
android:strokeColor="#7CB342"
android:fillType="evenOdd"/>
<path
android:pathData="m39.915,73.052v-38.358h15.692c6.499,0 11.767,5.15 11.767,11.502 0,6.089 -4.84,11.073 -10.964,11.476 -0.266,0.018 -0.533,0.027 -0.803,0.027h-15.692"
android:strokeWidth="1.372009"
android:fillColor="#00000000"
android:strokeColor="#368bd6"
android:strokeColor="#7CB342"
android:fillType="evenOdd"
android:strokeLineCap="round"/>
<path
android:pathData="m46.341,30.322c1.196,1.668 1.655,3.691 1.293,5.695 -0.362,2.005 -1.502,3.752 -3.21,4.92 -3.525,2.411 -8.402,1.572 -10.87,-1.871 -1.196,-1.668 -1.655,-3.691 -1.293,-5.696 0.362,-2.005 1.502,-3.752 3.21,-4.92 3.525,-2.411 8.401,-1.572 10.869,1.871zM67.439,80.671c-2.458,0 -4.876,-1.132 -6.394,-3.249l-11.022,-15.375c-2.472,-3.448 -1.616,-8.202 1.911,-10.617 3.527,-2.417 8.39,-1.58 10.862,1.868l11.022,15.375c2.472,3.448 1.616,8.202 -1.911,10.617 -1.362,0.933 -2.923,1.381 -4.469,1.381z"
android:fillColor="#368bd6"
android:fillColor="#7CB342"
android:fillType="evenOdd"/>
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View file

@ -5,6 +5,6 @@
android:viewportHeight="108">
<path
android:pathData="m0,0h108v108h-108z"
android:fillColor="#27303a"
android:fillColor="#303030"
android:fillType="evenOdd"/>
</vector>

View file

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item
android:drawable="@drawable/riot_splash_0_green"
android:duration="@integer/splash_animation_velocity" />
<!--
<item
android:drawable="@drawable/riot_splash_0_blue"
android:duration="@integer/splash_animation_velocity" />
@ -13,4 +17,5 @@
<item
android:drawable="@drawable/riot_splash_3_red"
android:duration="@integer/splash_animation_velocity" />
</animation-list>
-->
</animation-list>

View file

@ -6,8 +6,8 @@
<solid android:color="?vctr_list_header_background_color" />
<stroke android:width="1dp" android:color="@color/accent_color_light" />
<stroke android:width="1dp" android:color="?colorAccent" />
<corners android:radius="20dp" />
</shape>
</shape>

View file

@ -5,13 +5,13 @@
android:opacity="opaque">
<!-- Background color -->
<item android:drawable="@color/riot_primary_background_color_light" />
<item android:drawable="@color/black" />
<!-- Centered logo -->
<item>
<bitmap
android:gravity="center"
android:src="@drawable/riot_splash_0_blue" />
android:src="@drawable/riot_splash_0_green" />
</item>
</layer-list>
</layer-list>

View file

@ -234,4 +234,10 @@
<style name="AppTheme.AttachmentsPreview.SC" parent="AppTheme.Base.SC"/>
<!-- Default AppTheme with modified accent for usage where settings don't apply -->
<style name="AppTheme.SC.Light" parent="AppTheme.Light">
<item name="colorPrimary">@color/accent_sc</item>
</style>
</resources>