Compare commits

..

5 Commits

Author SHA1 Message Date
itepechi 54114a199b Add cool scripts to work with app icons
requires imagemagick and oxipng
2023-09-26 08:57:07 +09:00
itepechi db16459e4d Improve support for favicon and PWA icons 2023-09-26 08:55:35 +09:00
itepechi 2e983ff79c Update the theme settings in the fallback config 2023-09-26 08:50:50 +09:00
itepechi e10a788800 Give this fork a cool name
i don't want to complicate things, so the name of the software remains akkoma,
and i will, of course, continue to follow upstream changes as much as possible

p.s. michiru kagemori is peak character design
2023-09-26 08:48:08 +09:00
itepechi 7070dd2f3d Make gitignore rules more strict 2023-09-26 08:26:27 +09:00
16 changed files with 50 additions and 47 deletions

8
.gitignore vendored
View File

@ -77,7 +77,7 @@ docs/site
docs/venv
# docker stuff
docker-db
*.iml
static
etc
/docker-db
/*.iml
/static
/etc

View File

@ -1,3 +1,9 @@
# BNAkkoma Brand New Akkoma
<small>
*It's not that new. It's just a pun on a so-called anime.*
</small>
## What is this?
This is a fork of [AkkomaGang/akkoma](https://akkoma.dev/AkkomaGang/akkoma/), with some opinionated changes to satisfy my needs.

View File

@ -288,7 +288,7 @@ config :pleroma, :markup,
config :pleroma, :frontend_configurations,
pleroma_fe: %{
alwaysShowSubjectInput: true,
background: "/images/city.jpg",
background: "",
collapseMessageWithSubject: false,
disableChat: false,
greentext: false,
@ -299,7 +299,7 @@ config :pleroma, :frontend_configurations,
hideUserStats: false,
loginMethod: "password",
logo: "/static/logo.svg",
logoMargin: ".1em",
logoMargin: "0px",
logoMask: true,
noAttachmentLinks: false,
nsfwCensorImage: "",
@ -311,7 +311,7 @@ config :pleroma, :frontend_configurations,
showFeaturesPanel: true,
showInstanceSpecificPanel: false,
subjectLineBehavior: "email",
theme: "pleroma-dark",
theme: "itepechi",
webPushNotifications: false,
conversationDisplay: "linear"
},
@ -335,12 +335,32 @@ config :pleroma, :assets,
config :pleroma, :manifest,
icons: [
%{
src: "/static/logo.svg",
type: "image/svg+xml"
src: "/static/icon-512.png",
type: "image/png",
sizes: "512x512",
purpose: "any"
},
%{
src: "/static/icon-192.png",
type: "image/png",
sizes: "192x192",
purpose: "any"
},
%{
src: "/static/icon-maskable-512.png",
type: "image/png",
sizes: "512x512",
purpose: "maskable"
},
%{
src: "/static/icon-maskable-192.png",
type: "image/png",
sizes: "192x192",
purpose: "maskable"
}
],
theme_color: "#282c37",
background_color: "#191b22"
theme_color: "#d6cec7",
background_color: "#2f2f2f"
config :pleroma, :activitypub,
unfollow_blocked: true,

View File

@ -25,7 +25,7 @@ defmodule Pleroma.Constants do
const(static_only_files,
do:
~w(index.html robots.txt static static-fe finmoji emoji packs sounds images instance embed sw.js sw-pleroma.js favicon.png schemas doc)
~w(index.html robots.txt static static-fe finmoji emoji packs sounds images instance embed sw.js sw-pleroma.js favicon.ico favicon.png schemas doc)
)
const(status_updatable_fields,

View File

@ -4,7 +4,7 @@ defmodule Pleroma.Mixfile do
def project do
[
app: :pleroma,
version: version("3.10.3"),
version: version("3.10.3-akkoma+bnakkoma"),
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
priv/static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
priv/static/icon-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
priv/static/icon-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

35
priv/static/logo.svg Executable file → Normal file
View File

@ -1,34 +1 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 362.83 362.83">
<defs>
<style>
.cls-1 {
fill: #462d7a;
}
.cls-2 {
stroke: #2c1e50;
}
.cls-2, .cls-3 {
stroke-miterlimit: 10;
}
.cls-3 {
stroke: #fff;
}
</style>
</defs>
<g id="Layer_9" data-name="Layer 9">
<path class="cls-2" d="M269.3,197.19c-5.77-11.54-85.59,16.83-154.76,27.39-21.09,3.22-38.13,4.31-47.3,4.75-.74,2.91-1.76,7.02-2.87,11.97-1.93,8.6-2.89,12.89-2.6,13.78,3.3,9.95,59.73-.88,99.18-7.64,32.67-5.6,115.14-18.96,114.61-30.77-.03-.69-1.11-4.01-3.27-10.65-1.78-5.47-2.67-8.2-2.98-8.83Z"/>
</g>
<g id="Layer_6" data-name="Layer 6">
<path class="cls-1" d="M115.2,131.89c6.26-6.54,20.19-20.63,42.39-26.14,15.79-3.92,28.51-1.28,33.51,0,83.72,21.41,116.03,201.78,77.79,226.32-10.28,6.6-26.86,2.7-36.77-3.3-32.63-19.78-29.3-72.87-44.44-73.73-5.11-.29-7.15,5.8-20.91,24.94-19.63,27.3-31.49,43.44-49.21,50.87-2.53,1.06-26.91,12.07-41.84,1.23-38.55-28-2.96-155.84,39.49-200.18Zm56.31,10.45c-27.39-.52-46.38,38.21-37.98,54.55,10.09,19.62,65.5,18.26,74.77-3.3,7.21-16.78-11.38-50.77-36.79-51.24Z"/>
</g>
<g id="Layer_4" data-name="Layer 4">
<path d="M68.93,86.51c-6.55,27.74,252.45,113.97,267.56,89.66,9.24-14.87-64.9-83.62-163.53-97.57-39.06-5.52-100.95-5.14-104.03,7.91Z"/>
</g>
<g id="Layer_5" data-name="Layer 5">
<path class="cls-3" d="M138.96,93.76c.41-5.25,6.51-5.74,28.85-19.42,26.97-16.51,28.85-22.38,56.86-40.83,30.07-19.81,48.46-31.94,54.82-26.61,9.72,8.15-25.18,43.33-21.31,99.35,.87,12.61,3.12,17.79-.86,23.01-18.25,23.95-120.07-13.68-118.35-35.5Z"/>
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 48 48"><path fill="none" d="M0 0h48v48H0z"/><path fill="none" d="M4 4h40v40H4z"/><clipPath id="a"><path d="M4 4h40v40H4z"/></clipPath><g fill="#fc5293" clip-path="url(#a)"><path d="M38.8 32 43 44H32l-2-6h-3.172l2-2h2.614l2 6h6.739l-3.5-10H38.8Zm-23.575 8h2.108L16 44H5.899l2-2h6.659l.667-2ZM11.65 25l-2.1 6h2.119l.331-.946v-3.953L13.101 25H11.65Zm11.178 3h1.273l-2 2H21v-.172L22.828 28Zm4.778-3.506-1.581 1.581-.318-.954 1.581-1.581.318.954ZM14.469 23H14v1.101l.129-.129.34-.972Zm21.181 0h-2.119l-5.95-17h-7.162l-2.8 8H15.5L19 4h10l6.65 19Zm-11.542-9h-.216l.108-.325.108.325Z"/><path d="M19 30.414 16.414 33H7L-5.021 45.021l3.536 3.535L9.071 38H24l8-8h16v-5H29.929l-8 8H19v-2.586ZM14 32v-5.071L19.929 21H12v2H7v-7h20v5L16 32h-2Z"/></g></svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 901 B

3
scripts/minify_icon_png.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
echo oxipng -v -o 3 -a -s -Z ./priv/static/icon-*.png ./priv/static/apple-touch-icon.png
oxipng -v -o 3 -a -s -Z ./priv/static/icon-*.png ./priv/static/apple-touch-icon.png

7
scripts/pack_favicon_ico.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env sh
echo "convert ./priv/static/favicon-16.png ./priv/static/favicon-32.png ./priv/static/favicon.ico \
&& rm ./priv/static/favicon-16.png ./priv/static/favicon-32.png"
convert ./priv/static/favicon-16.png ./priv/static/favicon-32.png ./priv/static/favicon.ico \
&& rm ./priv/static/favicon-16.png ./priv/static/favicon-32.png