1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 06:44:21 +00:00

Add "Gestione Amber" theme

This commit is contained in:
Steffo 2021-10-16 03:39:20 +02:00 committed by Stefano Pigozzi
parent 73015b474b
commit 8b3e070a91
3 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1,24 @@
# Generated by Django 3.2.7 on 2021-10-16 01:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_sophoninstancedetails'),
]
operations = [
migrations.AlterModelOptions(
name='sophoninstancedetails',
options={'verbose_name': 'Sophon instance details', 'verbose_name_plural': 'Sophon instance details'},
),
migrations.AlterField(
model_name='sophoninstancedetails',
name='theme',
field=models.CharField(
choices=[('sophon', 'The Sophonity'), ('paper', 'Sheet of Paper'), ('royalblue', 'Royal Blue'), ('hacker', 'Hacker Terminal'),
('amber', 'Gestione Amber')], default='sophon', help_text='The bluelib theme of the Sophon instance.', max_length=32,
verbose_name='Theme'),
),
]

View file

@ -203,6 +203,7 @@ class SophonInstanceDetails(SophonModel):
("paper", "Sheet of Paper"), ("paper", "Sheet of Paper"),
("royalblue", "Royal Blue"), ("royalblue", "Royal Blue"),
("hacker", "Hacker Terminal"), ("hacker", "Hacker Terminal"),
("amber", "Gestione Amber"),
), ),
default="sophon", default="sophon",
max_length=32, max_length=32,

View file

@ -1,3 +1,4 @@
import {BluelibTheme} from "@steffo/bluelib-react/dist/types"
import * as React from "react" import * as React from "react"
import {ContextData} from "../types/ContextTypes" import {ContextData} from "../types/ContextTypes"
import {WithChildren} from "../types/ExtraTypes" import {WithChildren} from "../types/ExtraTypes"
@ -5,7 +6,7 @@ import {WithChildren} from "../types/ExtraTypes"
// States // States
type ThemeSelected = { type ThemeSelected = {
bluelib: "sophon" | "royalblue" | "hacker" | "paper", bluelib: BluelibTheme,
title: string, title: string,
} }
@ -14,7 +15,7 @@ type ThemeSelected = {
type ThemeSet = { type ThemeSet = {
type: "set", type: "set",
bluelib: "sophon" | "royalblue" | "hacker" | "paper", bluelib: BluelibTheme,
title: string, title: string,
} }