feat: improve design trough the whole application

This commit is contained in:
Elias Schneider
2026-05-29 11:37:34 +02:00
parent 272d1479bd
commit b3d40a476b
115 changed files with 822 additions and 550 deletions
@@ -165,11 +165,12 @@ func initServer(r *gin.Engine) (*serverConfig, error) {
}
var socketFn func() (*socket, error)
if common.EnvConfig.SystemdSocket {
switch {
case common.EnvConfig.SystemdSocket:
socketFn = systemdSocket
} else if common.EnvConfig.UnixSocket != "" {
case common.EnvConfig.UnixSocket != "":
socketFn = unixSocket
} else {
default:
socketFn = tcpSocket
}
@@ -54,7 +54,7 @@ func CreateDefaultProfilePicture(initials string) (*bytes.Buffer, error) {
img := imaging.New(profilePictureSize, profilePictureSize, color.RGBA{R: 255, G: 255, B: 255, A: 255})
// Load the font
fontBytes, err := resources.FS.ReadFile("fonts/PlayfairDisplay-Bold.ttf")
fontBytes, err := resources.FS.ReadFile("fonts/Gloock.ttf")
if err != nil {
return nil, fmt.Errorf("failed to read font file: %w", err)
}
@@ -84,7 +84,7 @@ func CreateDefaultProfilePicture(initials string) (*bytes.Buffer, error) {
// Center the initials
x := (profilePictureSize - font.MeasureString(face, initials).Ceil()) / 2
y := (profilePictureSize-face.Metrics().Height.Ceil())/2 + face.Metrics().Ascent.Ceil() - 10
y := (profilePictureSize-face.Metrics().Height.Ceil())/2 + face.Metrics().Ascent.Ceil()
drawer.Dot = fixed.P(x, y)
// Draw the initials
Binary file not shown.
Binary file not shown.