From e578b562372777d0c10195545869018a794f735a Mon Sep 17 00:00:00 2001 From: Philipp Matthias Schaefer Date: Sat, 27 Feb 2021 14:39:40 +0100 Subject: [PATCH] refactor: rename icon to logo --- .gitignore | 2 +- build_icon.sh | 3 --- build_logo.sh | 3 +++ src/main.rs | 2 +- src/static.rs | 6 +++--- src/static/index.html | 2 +- src/static/{icon.svg => logo.svg} | 0 7 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 build_icon.sh create mode 100644 build_logo.sh rename src/static/{icon.svg => logo.svg} (100%) diff --git a/.gitignore b/.gitignore index 262fd0d..6672530 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /target/ -/icon.png +/logo.png diff --git a/build_icon.sh b/build_icon.sh deleted file mode 100644 index 4bb0807..0000000 --- a/build_icon.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -inkscape -o icon.png -w 200 -h 200 -b white src/static/icon.svg diff --git a/build_logo.sh b/build_logo.sh new file mode 100644 index 0000000..665e084 --- /dev/null +++ b/build_logo.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +inkscape -o logo.png -w 200 -h 200 -b white src/static/logo.svg diff --git a/src/main.rs b/src/main.rs index a091aac..b8a5894 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,7 @@ fn main() -> Result<()> { r#static::js, r#static::checkmark, r#static::cross, - r#static::icon, + r#static::logo, r#static::hourglass, api::update]) .manage(config) diff --git a/src/static.rs b/src/static.rs index 670b331..7931a62 100644 --- a/src/static.rs +++ b/src/static.rs @@ -32,9 +32,9 @@ pub fn hourglass() -> Svg<&'static str> { Svg(include_str!("static/hourglass.svg")) } -#[get("/icon.svg")] -pub fn icon() -> Svg<&'static str> { - Svg(include_str!("static/icon.svg")) +#[get("/logo.svg")] +pub fn logo() -> Svg<&'static str> { + Svg(include_str!("static/logo.svg")) } #[get("/legal.html")] diff --git a/src/static/index.html b/src/static/index.html index 630a6b9..8b4316d 100644 --- a/src/static/index.html +++ b/src/static/index.html @@ -4,7 +4,7 @@ WebLDAPPasswd - + diff --git a/src/static/icon.svg b/src/static/logo.svg similarity index 100% rename from src/static/icon.svg rename to src/static/logo.svg