refactor: rename icon to logo

This commit is contained in:
Philipp Matthias Schaefer 2021-02-27 14:39:40 +01:00
parent b96a26d2d0
commit e578b56237
7 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
/target/ /target/
/icon.png /logo.png

View File

@ -1,3 +0,0 @@
#!/bin/bash
inkscape -o icon.png -w 200 -h 200 -b white src/static/icon.svg

3
build_logo.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
inkscape -o logo.png -w 200 -h 200 -b white src/static/logo.svg

View File

@ -43,7 +43,7 @@ fn main() -> Result<()> {
r#static::js, r#static::js,
r#static::checkmark, r#static::checkmark,
r#static::cross, r#static::cross,
r#static::icon, r#static::logo,
r#static::hourglass, r#static::hourglass,
api::update]) api::update])
.manage(config) .manage(config)

View File

@ -32,9 +32,9 @@ pub fn hourglass() -> Svg<&'static str> {
Svg(include_str!("static/hourglass.svg")) Svg(include_str!("static/hourglass.svg"))
} }
#[get("/icon.svg")] #[get("/logo.svg")]
pub fn icon() -> Svg<&'static str> { pub fn logo() -> Svg<&'static str> {
Svg(include_str!("static/icon.svg")) Svg(include_str!("static/logo.svg"))
} }
#[get("/legal.html")] #[get("/legal.html")]

View File

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>WebLDAPPasswd</title> <title>WebLDAPPasswd</title>
<link rel="stylesheet" href="webldappasswd.css"> <link rel="stylesheet" href="webldappasswd.css">
<link rel="icon" type="image/svg+xml" href="icon.svg"> <link rel="icon" type="image/svg+xml" href="logo.svg">
<script src="webldappasswd.js"></script> <script src="webldappasswd.js"></script>
</head> </head>
<body> <body>

View File

Before

Width:  |  Height:  |  Size: 728 B

After

Width:  |  Height:  |  Size: 728 B