From 1b7fe4ee04f141a37c537cb1f8ac736322966350 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 5 Oct 2021 17:58:25 -0500 Subject: [PATCH] Use custom Home and Post icons --- app/icons/COPYING.md | 5 +- app/icons/home-2-filled.svg | 3 - app/icons/home-square.svg | 59 +++++++++++++ app/icons/pen-add.svg | 78 ++++++++++++++++++ app/soapbox/components/primary_navigation.js | Bin 6451 -> 6500 bytes app/soapbox/components/thumb_navigation.js | Bin 4614 -> 4666 bytes .../features/ui/components/tabs_bar.js | Bin 4343 -> 4341 bytes app/soapbox/features/ui/index.js | Bin 26354 -> 26330 bytes app/styles/components/icon.scss | 4 + app/styles/components/tabs-bar.scss | 5 ++ app/styles/ui.scss | 8 +- 11 files changed, 153 insertions(+), 9 deletions(-) delete mode 100644 app/icons/home-2-filled.svg create mode 100644 app/icons/home-square.svg create mode 100644 app/icons/pen-add.svg diff --git a/app/icons/COPYING.md b/app/icons/COPYING.md index e549a78f3a..6a8df9bfd5 100644 --- a/app/icons/COPYING.md +++ b/app/icons/COPYING.md @@ -2,8 +2,9 @@ - dashboard-filled.svg - Modified from Tabler icons, MIT - fediverse.svg - Modified from Wikipedia, CC0 -- gavel.svg - Created by ramsha61 for this project, MIT -- home-2-filled.svg - Modified from Tabler icons, MIT +- gavel.svg - Created by ramsha61 for this project, MIT +- home-squared.svg - Modified from Tabler icons, MIT +- pen-add.svg - Modified from Feather icons, MIT Tabler: https://tabler-icons.io/ Feather: https://feathericons.com/ diff --git a/app/icons/home-2-filled.svg b/app/icons/home-2-filled.svg deleted file mode 100644 index f08cd6fea3..0000000000 --- a/app/icons/home-2-filled.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/app/icons/home-square.svg b/app/icons/home-square.svg new file mode 100644 index 0000000000..4bba6cc811 --- /dev/null +++ b/app/icons/home-square.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/app/icons/pen-add.svg b/app/icons/pen-add.svg new file mode 100644 index 0000000000..89da128c5d --- /dev/null +++ b/app/icons/pen-add.svg @@ -0,0 +1,78 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/app/soapbox/components/primary_navigation.js b/app/soapbox/components/primary_navigation.js index 3b358cb719426a084364a14af3c22cd2c2b999e6..c9c3f915ed03f8045058a615523aefbc3ca95714 100644 GIT binary patch delta 70 zcmdmN^u%a`E5~Fz0a?M! LA~u_4I6VXae%uq< diff --git a/app/soapbox/components/thumb_navigation.js b/app/soapbox/components/thumb_navigation.js index eea799e3457bf50c27419ae41b83a44fd534747a..dd09506d0f6cf36b98490c8d0d7705575bb785b0 100644 GIT binary patch delta 73 zcmZou*`=~UkA3ofKIzGk?A&a{g{6r_sgo6WMJ8MDiV3L~m!<1wCgSpBUrmE{G dOqS!3>?kNcIiKHT^Fwx3E&x8~6^H-; delta 64 zcmdm`(x$ROkDX1SxG34SdU7161dF>At#@aZdztePHKu?aap>$=H!dqVv{8~ayK8~G-U?>==uyI diff --git a/app/soapbox/features/ui/index.js b/app/soapbox/features/ui/index.js index 2b32f01e33d8e59dcebab5e19e3dc46fb5aee3e7..27e7d13fd5251994a0beca67d054cb7278bfc4a0 100644 GIT binary patch delta 35 rcmex#mhskE#tpyYMKY7~^NRHgQuA~ZQ&RMb%hJ^~Yd5PWoMr<6C5aBf delta 59 zcmcb0mhsbB#tpyYbsS0(lX6mv^fQz5^NOKlL26!dW{zHQS-QGrtwLI6MQTcTW=cuM JX8wfJYybd@7zY3V diff --git a/app/styles/components/icon.scss b/app/styles/components/icon.scss index 2ffa232417..40b55cdda5 100644 --- a/app/styles/components/icon.scss +++ b/app/styles/components/icon.scss @@ -14,6 +14,10 @@ } &--active { + &.svg-icon--home svg { + fill: currentColor; + } + svg.icon-tabler-search { stroke-width: 2.3px; } diff --git a/app/styles/components/tabs-bar.scss b/app/styles/components/tabs-bar.scss index 5038f05da9..a0226aef8c 100644 --- a/app/styles/components/tabs-bar.scss +++ b/app/styles/components/tabs-bar.scss @@ -289,6 +289,11 @@ width: 26px; height: 26px; margin: 0 auto; + + svg { + fill: currentColor; + stroke-width: 1px; + } } &:hover { diff --git a/app/styles/ui.scss b/app/styles/ui.scss index dfac97c099..528b16b9b7 100644 --- a/app/styles/ui.scss +++ b/app/styles/ui.scss @@ -391,12 +391,12 @@ } .svg-icon { - width: 40px; - height: 40px; + width: 30px; + height: 30px; svg { - stroke-width: 1px; - width: 40px; // iOS fix + stroke: 1.5px; + width: 30px; // iOS fix } } }