-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
50 lines (42 loc) · 1.55 KB
/
app.py
File metadata and controls
50 lines (42 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# ******************************************************************************
# Copyright (c) 2025. All rights reserved.
# # This work is licensed under the Creative Commons Attribution 4.0
# International License. To view a copy of this license,
# visit # http://creativecommons.org/licenses/by/4.0/.
#
# Author: roximn <roximn148@gmail.com>
# ******************************************************************************
import shinyswatch
from shiny.express import ui
from .utf import modUtf
from .ttx import modTtx
from .raqm import modRaqm
# UI ***************************************************************************
ui.page_opts(
window_title='Shinomni',
theme=shinyswatch.theme.spacelab,
)
ui.tags.style(
'.progress.shiny-file-input-progress{height: auto;} '
'.dataframe thead th{text-align:left;text-transform:capitalize;}'
)
ui.h3(
'Shinomni',
class_='navbar navbar-expand-lg bg-light',
style=(
'padding: 10px;'
'margin: 10px 0 20px 0;'
'border-radius: 10px;'
'border-width: 2px;'),
)
# Panels -----------------------------------------------------------------------
with ui.navset_pill():
# Text Layout Panel --------------------------------------------------------
with ui.nav_panel("Raqm"):
modRaqm('ttx')
# Font Glyphs Panel --------------------------------------------------------
with ui.nav_panel("Font Glyphs"):
modTtx('ttx')
# UTF Panel -------------------------------------------------------------
with ui.nav_panel("UTF"):
modUtf('utf')