1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +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 8a13e018a0
commit 66f21d9d1d
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"),
("royalblue", "Royal Blue"),
("hacker", "Hacker Terminal"),
("amber", "Gestione Amber"),
),
default="sophon",
max_length=32,

View file

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