I still don't know what I'm doing but less

This commit is contained in:
kdeschuy
2017-07-28 00:53:20 +02:00
14 changed files with 615 additions and 194 deletions

View File

@@ -9,7 +9,7 @@
android:roundIcon="@mipmap/stoofinbrand_icon" android:roundIcon="@mipmap/stoofinbrand_icon"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<activity android:name=".MainActivity"> <activity android:name=".ui.MainActivity">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

Binary file not shown.

View File

@@ -1,111 +0,0 @@
package be.mathsaey.stoofnogaan;
import android.app.Activity;
import android.content.Context;
import android.content.res.AssetManager;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class MainActivity extends Activity {
// View which contains all the tasks
private LinearLayout taskView;
private TaskView lastChild;
private final String TASKS_FILE = "tasks.txt";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
taskView = findViewById(R.id.tasks);
loadFromFile();
}
@Override
protected void onDestroy() {
super.onDestroy();
writeToFile();
taskView.removeAllViews();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
public void onNewTaskButtonClick(View v) {
if (lastChild == null || !lastChild.isEmpty()) {
TaskView task = new TaskView(this);
taskView.addView(task);
lastChild = task;
}
}
public void deleteTask(TaskView v) {
taskView.removeView(v);
if (taskView.getChildCount() == 0){
lastChild = null;
}
}
private void writeToFile() {
try {
FileOutputStream output = openFileOutput(TASKS_FILE, Context.MODE_PRIVATE);
for (int i = 0; i < taskView.getChildCount(); i++) {
TaskView v = (TaskView) taskView.getChildAt(i);
if (!v.isEmpty()) {
String s = v.toString() + "\n";
output.write(s.getBytes());
}
}
output.close();
}
catch (FileNotFoundException e) {
Log.e(BuildConfig.APPLICATION_ID, "Could not find file for writing, that's weird...");
}
catch (IOException e) {
Log.e(BuildConfig.APPLICATION_ID, "Error when trying to write, deleting");
}
}
private void loadFromFile() {
try {
FileInputStream input = openFileInput(TASKS_FILE);
InputStreamReader streamReader = new InputStreamReader(input);
BufferedReader bufferedReader = new BufferedReader(streamReader);
String line;
while ((line = bufferedReader.readLine()) != null) {
TaskView task = new TaskView(this, line);
taskView.addView(task);
lastChild = task;
}
input.close();
}
catch (IOException e) {}
catch (Exception e) {
Log.w(BuildConfig.APPLICATION_ID, Log.getStackTraceString(e));
}
}
}

View File

@@ -1,77 +0,0 @@
package be.mathsaey.stoofnogaan;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
class TaskView extends LinearLayout {
private MainActivity parent;
protected CheckBox checkBox;
protected EditText textView;
public TaskView(MainActivity p) {
super(p);
LayoutInflater.from(p).inflate(R.layout.task, this);
parent = p;
checkBox = findViewById(R.id.checkBox);
textView = findViewById(R.id.textView);
addTextListeners();
}
public TaskView(MainActivity p, String s) {
this(p);
if (!s.isEmpty()) {
Log.d(BuildConfig.APPLICATION_ID, s);
String[] split = s.split("\\t");
checkBox.setChecked(split[0].equalsIgnoreCase("true"));
textView.setText(split[1]);
}
}
public boolean isEmpty() {
return textView.getText().length() == 0;
}
public String toString() {
return String.format("%s\t%s", checkBox.isChecked(), textView.getText());
}
// Android is horrible, this code tries to figure out when the user finished editing.
// When this is the case, check if the text field is empty, delete the taskview if this is
// the case.
private void addTextListeners() {
// When done is clicked...
// Or not because that is when things start to go boom
textView.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {
if (i == EditorInfo.IME_ACTION_DONE && TaskView.this.isEmpty()) {
parent.deleteTask(TaskView.this);
return true;
}
return false;
}
});
// Or when we lose focus
textView.setOnFocusChangeListener(new OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean b) {
if (!b && TaskView.this.isEmpty()) {
parent.deleteTask(TaskView.this);
}
}
});
}
}

View File

@@ -0,0 +1,54 @@
package be.mathsaey.stoofnogaan.data;
public class Task {
private String text;
private boolean done;
public Task() {
text = "";
done = false;
}
public Task(String s) {
this();
text = s;
}
public Task(String s, boolean b) {
this(s);
done = b;
}
static public Task fromString(String s) {
Task res = new Task();
if (!s.isEmpty()) {
String[] split = s.split("\\t");
res.done = Boolean.parseBoolean(split[0]);
res.text = split.length > 1 ? split[1] : "";
}
return res;
}
public String toString() {
return String.format("%s\t%s\n", done, text);
}
public boolean getStatus() {
return this.done;
}
public void setStatus(boolean b) {
this.done = b;
}
public String getText() {
return this.text;
}
public void setText(String s) {
this.text = s;
}
public boolean isEmpty() {
return this.text.length() == 0;
}
}

View File

@@ -0,0 +1,100 @@
package be.mathsaey.stoofnogaan.data;
import android.content.Context;
import android.util.Log;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.PriorityQueue;
import be.mathsaey.stoofnogaan.BuildConfig;
public class TaskList implements Iterable<Task> {
private final String TASK_FILE = "tasks.txt";
private ArrayList<Task> list;
private Task last;
public TaskList() {
list = new ArrayList<Task>();
last = null;
}
public TaskList(Context c) {
this();
try {
FileInputStream input = c.openFileInput(TASK_FILE);
InputStreamReader inputReader = new InputStreamReader(input);
BufferedReader bufferedReader = new BufferedReader(inputReader);
String line;
while ((line = bufferedReader.readLine()) != null) {
Task t = Task.fromString(line);
list.add(t);
last = t;
}
input.close();
} catch (FileNotFoundException e) {
// When the file is not found, just don't load.
} catch (IOException e) {
Log.d(BuildConfig.APPLICATION_ID, Log.getStackTraceString(e));
}
}
public void writeToFile(Context c) {
try {
FileOutputStream output = c.openFileOutput(TASK_FILE, Context.MODE_PRIVATE);
for (Task t: list) {
String s = t.toString();
output.write(s.getBytes());
}
output.close();
} catch (FileNotFoundException e) {
Log.e(BuildConfig.APPLICATION_ID, "Could not find file for writing, that's weird...");
} catch (IOException e) {
Log.e(BuildConfig.APPLICATION_ID, "Error when trying to write, this make me sad");
}
}
public boolean isFinished() {
for (Task t: list) {
if (!t.getStatus()) {
return false;
}
}
return true;
}
public void add(Task t) {
list.add(t);
last = t;
}
public void remove(Task t) {
list.remove(t);
if (list.size() == 0) {
last = null;
}
}
public boolean canAddNew() {
return (last == null) || (!last.isEmpty());
}
@Override
public Iterator<Task> iterator() {
return list.iterator();
}
}

View File

@@ -0,0 +1,69 @@
package be.mathsaey.stoofnogaan.ui;
import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import be.mathsaey.stoofnogaan.R;
import be.mathsaey.stoofnogaan.data.Task;
import be.mathsaey.stoofnogaan.data.TaskList;
public class MainActivity extends Activity {
// View which contains all the tasks
private LinearLayout taskView;
private TaskList list;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
taskView = findViewById(R.id.tasks);
loadTasks();
Button button = (Button) findViewById(R.id.addButton);
Typeface custom_font = Typeface.createFromAsset(getAssets(), "fonts/Oswald-SemiBold.ttf");
button.setTypeface(custom_font);
}
@Override
protected void onDestroy() {
super.onDestroy();
list.writeToFile(this);
taskView.removeAllViews();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
public void loadTasks() {
list = new TaskList(this);
for (Task t: list) {
TaskView v = new TaskView(this, t);
taskView.addView(v);
}
}
public void onNewTaskButtonClick(View _button) {
if (list.canAddNew()) {
Task t = new Task();
TaskView v = new TaskView(this, t);
list.add(t);
taskView.addView(v);
}
}
public void deleteTask(TaskView v) {
taskView.removeView(v);
list.remove(v.getTask());
}
}

View File

@@ -0,0 +1,68 @@
package be.mathsaey.stoofnogaan.ui;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.Toast;
import be.mathsaey.stoofnogaan.R;
import be.mathsaey.stoofnogaan.data.Task;
class TaskView extends LinearLayout {
private Task task;
private MainActivity parent;
protected CheckBox checkBox;
protected EditText textView;
public TaskView(MainActivity p, Task t) {
super(p);
task = t;
LayoutInflater.from(p).inflate(R.layout.task, this);
parent = p;
checkBox = findViewById(R.id.checkBox);
textView = findViewById(R.id.textView);
checkBox.setChecked(t.getStatus());
textView.setText(t.getText());
addTextListeners();
}
public void update() {
task.setText(textView.getText().toString());
task.setStatus(checkBox.isChecked());
}
public Task getTask() {
return this.task;
}
// Android is horrible, this code tries to figure out when the user finished editing.
// When this is the case, check if the text field is empty, delete the taskview if this is
// the case.
private void addTextListeners() {
// Update text when text is changed
textView.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {}
@Override
public void afterTextChanged(Editable editable) {
TaskView.this.update();
if (task.isEmpty()) {
parent.deleteTask(TaskView.this);
}
}
});
}
}

View File

@@ -7,7 +7,7 @@
<!-- set the shadow color here --> <!-- set the shadow color here -->
<stroke <stroke
android:width="2dp" android:width="2dp"
android:color="#3e1a01" /> android:color="#7c7656" />
<padding <padding
android:bottom="2dp" android:bottom="2dp"
@@ -23,7 +23,7 @@
<item> <item>
<shape> <shape>
<solid android:color="@color/colorBrown" /> <solid android:color="#dad3a9" />
<corners android:radius="3dp" /> <corners android:radius="3dp" />
</shape> </shape>
</item> </item>

View File

@@ -7,8 +7,7 @@
android:orientation="vertical" android:orientation="vertical"
android:background="@color/colorLight" android:background="@color/colorLight"
android:padding="52dp" android:padding="52dp"
android:paddingTop="102dp" tools:context="ui.MainActivity">
tools:context="be.mathsaey.stoofnogaan.MainActivity">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -34,6 +33,7 @@
android:text="@string/task_new" android:text="@string/task_new"
android:background="@drawable/button" android:background="@drawable/button"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:textColor="#7c7656"
android:paddingLeft="52dp" android:paddingLeft="52dp"
android:paddingRight="52dp" android:paddingRight="52dp"
android:layout_centerHorizontal="true"> android:layout_centerHorizontal="true">

View File

@@ -3,7 +3,7 @@
<color name="colorWhite">#FFF</color> <color name="colorWhite">#FFF</color>
<color name="colorLight">#FFF8E1</color> <color name="colorLight">#FFF8E1</color>
<color name="colorOrange">#FF7F2A</color> <color name="colorOrange">#FF7F2A</color>
<color name="colorTeak">#5FD3BC</color> <color name="colorTeal">#5FD3BC</color>
<color name="colorDropShadow">#E6DDBF</color> <color name="colorDropShadow">#E6DDBF</color>
<color name="colorBrown">#552200</color> <color name="colorBrown">#552200</color>
</resources> </resources>

BIN
designs/header.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

151
designs/homescreen-icon.svg Normal file
View File

@@ -0,0 +1,151 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
width="79.375008mm"
height="79.375008mm"
viewBox="0 0 79.375008 79.375008"
version="1.1"
id="svg8"
sodipodi:docname="icon1.svg"
inkscape:version="0.92.1 r15371">
<defs
id="defs2">
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter4415">
<feFlood
flood-opacity="0.498039"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood4405" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite4407" />
<feGaussianBlur
in="composite1"
stdDeviation="0.6"
result="blur"
id="feGaussianBlur4409" />
<feOffset
dx="0.4"
dy="0.4"
result="offset"
id="feOffset4411" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite4413" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.49497475"
inkscape:cx="460.55385"
inkscape:cy="61.056813"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:object-nodes="false" />
<metadata
id="metadata5">
<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>
<g
inkscape:label="Background"
inkscape:groupmode="layer"
id="layer1"
style="display:inline"
transform="translate(-47.058035,-66.925887)">
<circle
style="fill:#fff8e1;fill-opacity:1;stroke:none;stroke-width:0.23593418;stroke-miterlimit:4;stroke-dasharray:none;filter:url(#filter4415)"
id="path3913"
cx="86.745537"
cy="106.61339"
r="33.072918" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Icon"
transform="translate(-47.058035,-66.925887)">
<g
id="g3923"
transform="translate(-6.0476191,4.9136906)">
<path
sodipodi:nodetypes="cscccccccc"
inkscape:connector-curvature="0"
id="path3905"
transform="scale(0.26458333)"
d="m 354.70549,374.8385 c -11.51932,11.17059 -26.78478,33.29381 -30.4469,40.06874 -3.63309,6.72122 -3.22606,35.23113 -2.99882,49.51659 l 36.83984,3.51758 39.14258,-2.27344 1.00976,-38.38672 5.30469,-3.0293 -1.51562,-8.83984 -20.70899,-18.6875 z"
style="fill:#5fd3bc;stroke:none;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="scale(0.26458333)"
id="path3869"
d="m 317.98047,290.50195 c 0.52657,0.24741 1.05339,0.51964 1.58008,0.80274 -0.50598,-0.37232 -1.03185,-0.64771 -1.58008,-0.80274 z m 1.58008,0.80274 c 3.03764,2.23518 5.26167,8.37857 6.01367,18.51172 0.46217,10.74341 -9.22153,29.74903 -16.83203,37.70312 -9.72967,12.30645 -17.25729,19.92265 -21.18164,35.49609 -3.36035,10.30647 -1.77021,29.04682 -2.56055,39.86133 4.97527,5.61922 10.87119,10.2107 17.49219,13.60352 h 12.79883 l 1.5625,-10.49805 -3.70704,3.57227 -5.36523,-0.44727 -0.38281,-7.67187 10.29492,-16.88086 30.05078,-29.29492 6.08008,0.85937 22.96289,15.30274 24.38281,27.49218 6.15039,-1.4082 -7.27929,11.63672 -5.77344,-4.10547 2.24609,11.44336 h 0.47461 c 0.41759,-0.15304 0.83838,-0.29269 1.25391,-0.45313 8.16635,-1.14931 16.77865,-2.89581 22.55078,-9.35546 8.26874,-8.19009 11.53449,-20.78222 10.23437,-32.1504 -2.09359,-10.36531 -6.98433,-20.0051 -11.74804,-29.3164 -7.16803,-9.57199 -13.27814,-20.17344 -22.09571,-28.34961 -5.98579,-3.10024 -6.39692,8.02133 -10.04492,11.125 -1.5617,5.4702 -7.50452,17.71723 -11.45312,6.92578 -2.79772,-11.16639 -11.80158,-19.0312 -17.82813,-28.45898 -6.86979,-8.24365 -13.55008,-16.70733 -22.08398,-23.34375 -4.89789,-3.78363 -10.54118,-8.75021 -16.21289,-11.79883 z"
style="fill:#ff7f2a;stroke:none;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
inkscape:connector-curvature="0" />
<g
style="fill:#552200"
transform="translate(-2.1381559,-14.432555)"
id="g4114">
<path
inkscape:connector-curvature="0"
id="rect3043"
d="m 95.746094,112.35938 c -1.457257,0.1594 -2.508473,1.37655 -3.60553,2.23561 -3.506457,3.17176 -6.629477,6.73472 -9.840483,10.19519 -0.996864,1.14893 -0.02406,2.80356 1.271986,3.17687 1.445595,0.26219 0.448806,2.11065 0.68027,3.1839 0.01653,2.22857 -0.219195,4.50378 0.2533,6.69618 0.843906,1.0748 2.456473,0.66775 3.673118,0.87856 5.842606,0.2362 11.703412,0.28677 17.541875,-0.0715 1.56156,0.197 2.94161,-0.81416 2.55229,-2.50252 0.0337,-2.72763 -0.12667,-5.4535 -0.29055,-8.17508 1.25648,-0.38015 2.58528,-1.68757 1.92603,-3.07882 -0.77048,-1.32513 -2.10286,-2.21245 -3.12652,-3.33268 -3.14115,-2.96401 -6.21185,-6.03395 -9.680366,-8.61975 -0.414281,-0.25675 -0.843766,-0.5918 -1.35542,-0.58593 z m 0.0078,1.58789 c 0.679829,0.44366 2.037491,1.48451 2.886025,2.2526 3.322251,2.9046 6.519121,5.9531 9.640881,9.07049 0.62081,0.97177 -1.14047,1.30886 -1.82597,1.62001 -0.29074,0.63128 0.0894,1.70786 0.0251,2.49698 0.11286,2.51622 0.30493,5.03993 0.15863,7.55797 -4.07981,0.4526 -8.200748,0.34816 -12.300111,0.36044 -2.802531,-0.0692 -5.660249,-0.0127 -8.420586,-0.39166 -0.245215,-3.25164 -0.04536,-6.51869 0.05469,-9.77344 -0.872269,-0.28179 -1.916339,-0.47941 -2.501955,-1.20312 1.102268,-1.35146 2.362301,-2.60394 3.531629,-3.91213 2.567886,-2.69165 5.05257,-5.51861 8.064074,-7.72849 0.21412,-0.14494 0.454062,-0.24173 0.687573,-0.34965 z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#552200;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.58749998;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
<path
inkscape:connector-curvature="0"
id="path3087"
d="m 87.082023,89.782114 c -0.829752,0.435806 -1.659504,0.871609 -2.489256,1.307415 0.621224,2.575028 0.415253,5.333307 -0.309565,7.868253 -1.656971,5.678298 -6.576041,9.453688 -9.173487,14.624978 -1.196502,2.33556 -1.921304,5.01795 -1.35159,7.64147 -0.199916,3.73237 2.745946,6.80622 6.038966,8.09089 1.011148,0.43447 4.128987,1.51756 1.729357,0.0215 -1.609977,-1.25562 -3.508817,-2.37907 -4.165693,-4.4434 -1.026845,-2.4199 -1.267105,-5.05834 -1.270918,-7.65645 0.5451,-4.01521 3.026971,-7.40942 5.477476,-10.51244 2.183529,-2.71165 4.312544,-5.59047 5.248486,-8.991278 0.68902,-1.400439 0.386853,-4.019243 0.819994,-4.827701 2.087931,1.442919 4.019021,3.095641 5.644211,5.056111 2.524268,2.593868 4.731393,5.527728 6.415519,8.729708 1.012327,1.52092 0.888477,4.68532 2.222127,5.29838 1.01043,-1.98203 2.56992,-3.60603 3.61857,-5.55822 0.41528,-1.02444 0.71425,-3.18711 1.75765,-1.34038 2.90048,3.7734 6.29415,7.49429 7.36984,12.27243 0.54602,2.29584 0.84211,4.89805 -0.13127,7.11341 -1.05971,1.92866 -2.5101,3.69674 -4.38321,4.87552 1.61855,-0.49963 3.09155,-1.37927 4.1491,-2.73317 1.6983,-1.82437 2.96223,-4.19873 2.58238,-6.75979 -0.0162,-4.70261 -2.49654,-8.96703 -5.36815,-12.53583 -1.15471,-1.61045 -2.39017,-3.18415 -3.77572,-4.59072 -0.34293,-0.74866 -0.73315,-1.33324 -1.49598,-0.62499 -1.57459,0.34148 -1.1226,2.30092 -1.85958,3.41605 -0.37803,0.99058 -1.24167,3.51081 -1.88892,3.1093 -0.72154,-2.62362 -2.07953,-4.98412 -3.708306,-7.14375 -2.062639,-2.918417 -4.585636,-5.496673 -7.178897,-7.941679 -1.430433,-1.325341 -3.537942,-2.038525 -4.523134,-3.765617 z"
style="fill:#552200;stroke:none;stroke-width:0.26458332" />
<path
inkscape:connector-curvature="0"
id="path4057"
d="m 91.542884,98.659867 c -0.527788,0.03686 -1.055579,0.07373 -1.583367,0.110588 -0.567433,0.922308 -0.787865,1.999575 -1.317215,2.944775 -0.570457,1.01687 -1.200909,1.99166 -1.829001,2.97063 -0.748188,1.14813 -1.465365,2.31252 -2.261277,3.42616 -0.860867,1.61892 -2.244368,2.88692 -3.140305,4.4793 -0.666348,1.31193 -1.087697,2.72965 -1.599385,4.10672 -0.426789,1.1035 -0.360275,2.28465 -0.358119,3.44217 0.528995,0 1.057989,0 1.586984,0 -0.02771,-1.19842 -0.06778,-2.42945 0.409215,-3.55844 0.51493,-1.30689 0.895877,-2.66965 1.550355,-3.91552 0.701638,-1.1919 1.649164,-2.22042 2.453915,-3.34569 0.485699,-0.85866 1.078937,-1.64184 1.591152,-2.48037 0.69547,-0.99254 1.326814,-2.03325 1.987076,-3.04954 0.704392,-1.14459 1.482066,-2.28862 1.860399,-3.59909 0.246158,-0.655787 0.964957,0.61269 1.338937,0.8847 0.797785,0.8345 1.514293,1.74781 2.048971,2.77451 0.562909,0.76281 0.890661,1.65821 1.301967,2.50164 0.233359,0.58728 0.243107,1.38652 1.055108,1.12533 0.341257,-0.0823 1.235075,0.2163 0.785368,-0.42613 -0.271159,-0.932 -0.713838,-1.80338 -1.164535,-2.66145 -0.564234,-0.95576 -1.118349,-1.93236 -1.844452,-2.78243 -0.706769,-0.78199 -1.430812,-1.56056 -2.223347,-2.261767 -0.21453,-0.230227 -0.441172,-0.449111 -0.648444,-0.686096 z"
style="fill:#552200;stroke:none;stroke-width:0.21166667;stroke-miterlimit:4;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
id="path4065"
d="m 107.6608,109.92181 c 1.05991,0.84959 2.04503,1.81392 2.81687,2.93678 0.4624,0.71039 0.82027,1.48347 1.19806,2.24003 0.38887,1.04558 0.65444,2.12916 0.93201,3.20765 0.0266,0.34478 0.39405,0.81589 0.0219,1.06998 -0.42329,0.02 -0.86256,-0.0145 -1.29357,7.6e-4 -0.2873,-0.02 -0.087,-0.57672 -0.25111,-0.81585 -0.15048,-0.46879 -0.26638,-0.94614 -0.37054,-1.42622 -0.27521,-0.97705 -0.56603,-1.95728 -1.05302,-2.85358 -0.55953,-1.16988 -1.37124,-2.19843 -2.29979,-3.09683 -0.3437,-0.314 -0.66123,-0.67443 -1.05551,-0.91949 -0.29403,-0.39836 0.45025,-0.19217 0.66347,-0.28322 0.23033,-0.0201 0.46132,-0.0408 0.69126,-0.06 z"
style="fill:#552200;stroke:none;stroke-width:0.21166667;stroke-miterlimit:4;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
id="path4099"
d="m 89.399659,135.23806 c 0.06504,-2.24818 -0.06386,-4.50282 0.06945,-6.74728 0.179048,-1.12149 -0.07606,-2.30027 0.346875,-3.38223 0.195376,-1.07628 1.07947,-1.81977 1.771301,-2.59709 0.816912,-0.79727 1.647407,-1.58601 2.450741,-2.39363 0.643634,-0.4409 1.044911,-1.23702 1.842367,-1.43504 0.501065,0.0848 1.397155,-10e-4 1.649681,0.19121 -0.677917,0.77966 -1.570581,1.33718 -2.238456,2.12798 -0.779086,0.78868 -1.622517,1.51136 -2.350707,2.3474 -0.519185,0.49793 -0.977035,1.08439 -1.145308,1.79733 -0.404959,1.25664 -0.192085,2.59711 -0.376617,3.88745 -0.05719,1.37188 -0.0053,2.74581 -0.02714,4.11837 0.0097,0.6951 0.04649,1.39702 -0.0725,2.08553 -0.639893,0 -1.279812,0 -1.919688,0 z"
style="fill:#552200;stroke:none;stroke-width:0.21166667;stroke-miterlimit:4;stroke-dasharray:none" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

167
designs/in-app-icon.svg Normal file
View File

@@ -0,0 +1,167 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
width="273.14944mm"
height="55.057526mm"
viewBox="0 0 273.14945 55.057526"
version="1.1"
id="svg8"
sodipodi:docname="in-app-icon.svg"
inkscape:version="0.92.1 r15371">
<defs
id="defs2">
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter4415">
<feFlood
flood-opacity="0.498039"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood4405" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite4407" />
<feGaussianBlur
in="composite1"
stdDeviation="0.6"
result="blur"
id="feGaussianBlur4409" />
<feOffset
dx="0.4"
dy="0.4"
result="offset"
id="feOffset4411" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite4413" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="-268.94317"
inkscape:cy="100.93779"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-x="1912"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:object-nodes="false" />
<metadata
id="metadata5">
<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>
<g
inkscape:label="Background"
inkscape:groupmode="layer"
id="layer1"
style="display:inline"
transform="translate(-64.163284,-76.276283)">
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:24.78818893px;line-height:1.25;font-family:'Gloria Hallelujah';-inkscape-font-specification:'Gloria Hallelujah';letter-spacing:0px;word-spacing:0px;fill:#552200;fill-opacity:1;stroke:none;stroke-width:0.61970472"
x="129.93535"
y="100.01555"
id="text3864"><tspan
sodipodi:role="line"
id="tspan3862"
x="129.93535"
y="100.01555"
style="fill:#552200;fill-opacity:1;stroke-width:0.61970472">Stoof In Brand?</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17.09209633px;line-height:1.25;font-family:Oswald;-inkscape-font-specification:Oswald;letter-spacing:0px;word-spacing:0px;fill:#ff7f2a;fill-opacity:1;stroke:none;stroke-width:0.42730239"
x="130.19374"
y="125.1031"
id="text3868"><tspan
sodipodi:role="line"
id="tspan3866"
x="130.19374"
y="125.1031"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Oswald;-inkscape-font-specification:Oswald;fill:#ff7f2a;fill-opacity:1;stroke-width:0.42730239">Moogt ge weg gaan alle?</tspan></text>
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Icon"
transform="translate(-64.163284,-76.276283)">
<g
id="g3923"
transform="translate(-6.0476191,4.9136906)">
<path
sodipodi:nodetypes="cscccccccc"
inkscape:connector-curvature="0"
id="path3905"
transform="scale(0.26458333)"
d="m 354.70549,374.8385 c -11.51932,11.17059 -26.78478,33.29381 -30.4469,40.06874 -3.63309,6.72122 -3.22606,35.23113 -2.99882,49.51659 l 36.83984,3.51758 39.14258,-2.27344 1.00976,-38.38672 5.30469,-3.0293 -1.51562,-8.83984 -20.70899,-18.6875 z"
style="fill:#5fd3bc;stroke:none;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="scale(0.26458333)"
id="path3869"
d="m 317.98047,290.50195 c 0.52657,0.24741 1.05339,0.51964 1.58008,0.80274 -0.50598,-0.37232 -1.03185,-0.64771 -1.58008,-0.80274 z m 1.58008,0.80274 c 3.03764,2.23518 5.26167,8.37857 6.01367,18.51172 0.46217,10.74341 -9.22153,29.74903 -16.83203,37.70312 -9.72967,12.30645 -17.25729,19.92265 -21.18164,35.49609 -3.36035,10.30647 -1.77021,29.04682 -2.56055,39.86133 4.97527,5.61922 10.87119,10.2107 17.49219,13.60352 h 12.79883 l 1.5625,-10.49805 -3.70704,3.57227 -5.36523,-0.44727 -0.38281,-7.67187 10.29492,-16.88086 30.05078,-29.29492 6.08008,0.85937 22.96289,15.30274 24.38281,27.49218 6.15039,-1.4082 -7.27929,11.63672 -5.77344,-4.10547 2.24609,11.44336 h 0.47461 c 0.41759,-0.15304 0.83838,-0.29269 1.25391,-0.45313 8.16635,-1.14931 16.77865,-2.89581 22.55078,-9.35546 8.26874,-8.19009 11.53449,-20.78222 10.23437,-32.1504 -2.09359,-10.36531 -6.98433,-20.0051 -11.74804,-29.3164 -7.16803,-9.57199 -13.27814,-20.17344 -22.09571,-28.34961 -5.98579,-3.10024 -6.39692,8.02133 -10.04492,11.125 -1.5617,5.4702 -7.50452,17.71723 -11.45312,6.92578 -2.79772,-11.16639 -11.80158,-19.0312 -17.82813,-28.45898 -6.86979,-8.24365 -13.55008,-16.70733 -22.08398,-23.34375 -4.89789,-3.78363 -10.54118,-8.75021 -16.21289,-11.79883 z"
style="fill:#ff7f2a;stroke:none;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
inkscape:connector-curvature="0" />
<g
style="fill:#552200"
transform="translate(-2.1381559,-14.432555)"
id="g4114">
<path
inkscape:connector-curvature="0"
id="rect3043"
d="m 95.746094,112.35938 c -1.457257,0.1594 -2.508473,1.37655 -3.60553,2.23561 -3.506457,3.17176 -6.629477,6.73472 -9.840483,10.19519 -0.996864,1.14893 -0.02406,2.80356 1.271986,3.17687 1.445595,0.26219 0.448806,2.11065 0.68027,3.1839 0.01653,2.22857 -0.219195,4.50378 0.2533,6.69618 0.843906,1.0748 2.456473,0.66775 3.673118,0.87856 5.842606,0.2362 11.703412,0.28677 17.541875,-0.0715 1.56156,0.197 2.94161,-0.81416 2.55229,-2.50252 0.0337,-2.72763 -0.12667,-5.4535 -0.29055,-8.17508 1.25648,-0.38015 2.58528,-1.68757 1.92603,-3.07882 -0.77048,-1.32513 -2.10286,-2.21245 -3.12652,-3.33268 -3.14115,-2.96401 -6.21185,-6.03395 -9.680366,-8.61975 -0.414281,-0.25675 -0.843766,-0.5918 -1.35542,-0.58593 z m 0.0078,1.58789 c 0.679829,0.44366 2.037491,1.48451 2.886025,2.2526 3.322251,2.9046 6.519121,5.9531 9.640881,9.07049 0.62081,0.97177 -1.14047,1.30886 -1.82597,1.62001 -0.29074,0.63128 0.0894,1.70786 0.0251,2.49698 0.11286,2.51622 0.30493,5.03993 0.15863,7.55797 -4.07981,0.4526 -8.200748,0.34816 -12.300111,0.36044 -2.802531,-0.0692 -5.660249,-0.0127 -8.420586,-0.39166 -0.245215,-3.25164 -0.04536,-6.51869 0.05469,-9.77344 -0.872269,-0.28179 -1.916339,-0.47941 -2.501955,-1.20312 1.102268,-1.35146 2.362301,-2.60394 3.531629,-3.91213 2.567886,-2.69165 5.05257,-5.51861 8.064074,-7.72849 0.21412,-0.14494 0.454062,-0.24173 0.687573,-0.34965 z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#552200;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.58749998;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
<path
inkscape:connector-curvature="0"
id="path3087"
d="m 87.082023,89.782114 c -0.829752,0.435806 -1.659504,0.871609 -2.489256,1.307415 0.621224,2.575028 0.415253,5.333307 -0.309565,7.868253 -1.656971,5.678298 -6.576041,9.453688 -9.173487,14.624978 -1.196502,2.33556 -1.921304,5.01795 -1.35159,7.64147 -0.199916,3.73237 2.745946,6.80622 6.038966,8.09089 1.011148,0.43447 4.128987,1.51756 1.729357,0.0215 -1.609977,-1.25562 -3.508817,-2.37907 -4.165693,-4.4434 -1.026845,-2.4199 -1.267105,-5.05834 -1.270918,-7.65645 0.5451,-4.01521 3.026971,-7.40942 5.477476,-10.51244 2.183529,-2.71165 4.312544,-5.59047 5.248486,-8.991278 0.68902,-1.400439 0.386853,-4.019243 0.819994,-4.827701 2.087931,1.442919 4.019021,3.095641 5.644211,5.056111 2.524268,2.593868 4.731393,5.527728 6.415519,8.729708 1.012327,1.52092 0.888477,4.68532 2.222127,5.29838 1.01043,-1.98203 2.56992,-3.60603 3.61857,-5.55822 0.41528,-1.02444 0.71425,-3.18711 1.75765,-1.34038 2.90048,3.7734 6.29415,7.49429 7.36984,12.27243 0.54602,2.29584 0.84211,4.89805 -0.13127,7.11341 -1.05971,1.92866 -2.5101,3.69674 -4.38321,4.87552 1.61855,-0.49963 3.09155,-1.37927 4.1491,-2.73317 1.6983,-1.82437 2.96223,-4.19873 2.58238,-6.75979 -0.0162,-4.70261 -2.49654,-8.96703 -5.36815,-12.53583 -1.15471,-1.61045 -2.39017,-3.18415 -3.77572,-4.59072 -0.34293,-0.74866 -0.73315,-1.33324 -1.49598,-0.62499 -1.57459,0.34148 -1.1226,2.30092 -1.85958,3.41605 -0.37803,0.99058 -1.24167,3.51081 -1.88892,3.1093 -0.72154,-2.62362 -2.07953,-4.98412 -3.708306,-7.14375 -2.062639,-2.918417 -4.585636,-5.496673 -7.178897,-7.941679 -1.430433,-1.325341 -3.537942,-2.038525 -4.523134,-3.765617 z"
style="fill:#552200;stroke:none;stroke-width:0.26458332" />
<path
inkscape:connector-curvature="0"
id="path4057"
d="m 91.542884,98.659867 c -0.527788,0.03686 -1.055579,0.07373 -1.583367,0.110588 -0.567433,0.922308 -0.787865,1.999575 -1.317215,2.944775 -0.570457,1.01687 -1.200909,1.99166 -1.829001,2.97063 -0.748188,1.14813 -1.465365,2.31252 -2.261277,3.42616 -0.860867,1.61892 -2.244368,2.88692 -3.140305,4.4793 -0.666348,1.31193 -1.087697,2.72965 -1.599385,4.10672 -0.426789,1.1035 -0.360275,2.28465 -0.358119,3.44217 0.528995,0 1.057989,0 1.586984,0 -0.02771,-1.19842 -0.06778,-2.42945 0.409215,-3.55844 0.51493,-1.30689 0.895877,-2.66965 1.550355,-3.91552 0.701638,-1.1919 1.649164,-2.22042 2.453915,-3.34569 0.485699,-0.85866 1.078937,-1.64184 1.591152,-2.48037 0.69547,-0.99254 1.326814,-2.03325 1.987076,-3.04954 0.704392,-1.14459 1.482066,-2.28862 1.860399,-3.59909 0.246158,-0.655787 0.964957,0.61269 1.338937,0.8847 0.797785,0.8345 1.514293,1.74781 2.048971,2.77451 0.562909,0.76281 0.890661,1.65821 1.301967,2.50164 0.233359,0.58728 0.243107,1.38652 1.055108,1.12533 0.341257,-0.0823 1.235075,0.2163 0.785368,-0.42613 -0.271159,-0.932 -0.713838,-1.80338 -1.164535,-2.66145 -0.564234,-0.95576 -1.118349,-1.93236 -1.844452,-2.78243 -0.706769,-0.78199 -1.430812,-1.56056 -2.223347,-2.261767 -0.21453,-0.230227 -0.441172,-0.449111 -0.648444,-0.686096 z"
style="fill:#552200;stroke:none;stroke-width:0.21166667;stroke-miterlimit:4;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
id="path4065"
d="m 107.6608,109.92181 c 1.05991,0.84959 2.04503,1.81392 2.81687,2.93678 0.4624,0.71039 0.82027,1.48347 1.19806,2.24003 0.38887,1.04558 0.65444,2.12916 0.93201,3.20765 0.0266,0.34478 0.39405,0.81589 0.0219,1.06998 -0.42329,0.02 -0.86256,-0.0145 -1.29357,7.6e-4 -0.2873,-0.02 -0.087,-0.57672 -0.25111,-0.81585 -0.15048,-0.46879 -0.26638,-0.94614 -0.37054,-1.42622 -0.27521,-0.97705 -0.56603,-1.95728 -1.05302,-2.85358 -0.55953,-1.16988 -1.37124,-2.19843 -2.29979,-3.09683 -0.3437,-0.314 -0.66123,-0.67443 -1.05551,-0.91949 -0.29403,-0.39836 0.45025,-0.19217 0.66347,-0.28322 0.23033,-0.0201 0.46132,-0.0408 0.69126,-0.06 z"
style="fill:#552200;stroke:none;stroke-width:0.21166667;stroke-miterlimit:4;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
id="path4099"
d="m 89.399659,135.23806 c 0.06504,-2.24818 -0.06386,-4.50282 0.06945,-6.74728 0.179048,-1.12149 -0.07606,-2.30027 0.346875,-3.38223 0.195376,-1.07628 1.07947,-1.81977 1.771301,-2.59709 0.816912,-0.79727 1.647407,-1.58601 2.450741,-2.39363 0.643634,-0.4409 1.044911,-1.23702 1.842367,-1.43504 0.501065,0.0848 1.397155,-10e-4 1.649681,0.19121 -0.677917,0.77966 -1.570581,1.33718 -2.238456,2.12798 -0.779086,0.78868 -1.622517,1.51136 -2.350707,2.3474 -0.519185,0.49793 -0.977035,1.08439 -1.145308,1.79733 -0.404959,1.25664 -0.192085,2.59711 -0.376617,3.88745 -0.05719,1.37188 -0.0053,2.74581 -0.02714,4.11837 0.0097,0.6951 0.04649,1.39702 -0.0725,2.08553 -0.639893,0 -1.279812,0 -1.919688,0 z"
style="fill:#552200;stroke:none;stroke-width:0.21166667;stroke-miterlimit:4;stroke-dasharray:none" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB