Skip to content

Custom css file (green as main color) for Seafile Server

License

Notifications You must be signed in to change notification settings

abcdot/seafile_custom_css_green

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content/Inhalt

English README: Custom css file for the Seafile server

Intro

The Seafile server comes with a standard template that does not look bad, but does not like everyone. This can be changed by overwriting desired parts of the template with own values.

With the custom.css from this repository, the default color orange of the elements is changed to green.

Installation

Copy the file custom.css to seahub-data/custom and add the following line to conf/seahub-settings.py:

BRANDING_CSS = 'custom/custom.css'

To change the icon color for folder icons you have to copy the file folder-192.png from the img folder of this repo into the seahub folder (seafile-server-latest/seahub/media/img) on your server and rename it to folder-24.png. But before please create a backup of your original file. After an update of the Seafile server this change will be reverted and you have to copy it again.

If you want to use the green Favicon copy the favicon.png to seahub-data/custom and add the following line to your conf/seahub-settings.py:

FAVICON_PATH = 'custom/favicon.png'

Finally, the Seafile server (and Seahub) must be restarted. For example in Debian Jessie this can be done with:

sudo systemctl stop seahub.service
sudo systemctl stop seafile.service
sudo systemctl start seafile.service
sudo systemctl start seahub.service

Notes

  • the icons for folders are not changed and still have the color orange. I'm currently looking for a way to change the folder icon color so that the changes will be kept within a server update.
  • custom.css tested with Seafile Server 6.2.1
  • At the top of the custom.css you will find two variables which define the main colors (dark and light). Here you can change the color to the color you want to use:
:root {
    --darkMain: #008a3b; /*dark green*/
    --lightMain: #e2f1e7; /*light green*/
}

Dark theme

You will find a very eraly alpha version of a dark theme in the branch dark of this repo.

Deutsche README: Eigene css-Datei für den Seafile-Server

Intro

Der Seafile-Server mit mit einem Standard-Template ausgeliefert, das grundsätzlich nicht schlecht aussieht, aber doch nicht jedem gefällt. Das kann man ändern, in dem man gewünschte Teile des Templates mit eigenen Werten überschreibt.

Mit Hilfe der custom.css aus diesem Repository wird die Standardfarbe orange der Elemente in grün geändert.

Installation

Dazu muss man die Datei namens custom.css in den Ordner seahub-data/custom kopieren und im conf-Ordner des Seafile-Servers die Datei seahub_settings.py angepassen, in dem folgender Eintrag hinzugefügt wird:

BRANDING_CSS = 'custom/custom.css'

Zum Ändern der Farbe des Icons für Ordner (original orange) muss die Datei folder-192.png aus dem img-Ordner des Repos in den Seahub-Ordner ((seafile-server-latest/seahub/media/img)) auf dem Server kopiert und in folder-24.png umbenannt werden. Aber bitte vorher ein Backup der Originaldatei anlegen. Diese Änderung ist nicht persistent und ist nach einem Seafile Server Update verscheunden und muss dann neu durchgeführt werden.

Wenn man das Favicon auch im passenden grün haben möchte, dann muss die Datei favicon.png nach seahub-data/custom kopiert und die folgende Zeile zur conf/seahub-settings.py hinzugefügt werden:

FAVICON_PATH = 'custom/favicon.png'

Zuletzt muss noch der Seafile-Server (und Seahub) neugestartet werden. Das erfolgt zum Beispiel bei Debian Jessie mit:

sudo systemctl stop seahub.service
sudo systemctl stop seafile.service
sudo systemctl start seafile.service
sudo systemctl start seahub.service

Sonstiges

  • die Icons'für Ordner und ähnliches sind nich nicht geändert und haben noch die Farbe orange. Ich suche zur Zeit noch eine Möglichkeit, dass so zu ändern, dass die Änderung bei einem Server-Update erhalten bleibt.
  • custom.css getestet mit Seafile Server 6.2.1
  • Am Anfang der custom.css sind die zwei Hauptfarben als Variable deklariert. Hier können die beiden Farben geändert werden, ohne sie im gesamten Dokument suchen zu müssen:
:root {
    --darkMain: #008a3b; /*dark green*/
    --lightMain: #e2f1e7; /*light green*/
}

Dunkles Thema

Eine frühe Alpha-Version des dunklen Themes ist im Branch dark dieses Repos zu finden.

Screenshots

Login Navbar Main Folder

About

Custom css file (green as main color) for Seafile Server

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • CSS 100.0%