Files
leonwww/flumi/Scripts/Constants.gd

51 lines
1.8 KiB
GDScript3
Raw Normal View History

2025-07-21 19:31:07 +03:00
extends Node
const MAIN_COLOR = Color(27/255.0, 27/255.0, 27/255.0, 1)
const SECONDARY_COLOR = Color(43/255.0, 43/255.0, 43/255.0, 1)
const HOVER_COLOR = Color(0, 0, 0, 1)
2025-07-28 15:22:34 +03:00
const DEFAULT_CSS = """
body { text-base text-[#000000] text-left bg-white font-serif }
2025-07-28 15:22:34 +03:00
h1 { text-5xl font-bold }
h2 { text-4xl font-bold }
h3 { text-3xl font-bold }
h4 { text-2xl font-bold }
h5 { text-xl font-bold }
b { font-bold }
i { font-italic }
u { underline }
small { text-xl }
mark { bg-[#FFFF00] }
code { text-xl font-mono }
a { text-[#1a0dab] }
pre { text-xl font-mono }
2025-08-27 20:23:05 +03:00
img { object-fill }
button { text-[16px] bg-[#1b1b1b] rounded-md text-white hover:bg-[#2a2a2a] active:bg-[#101010] px-3 py-1.5 }
button[disabled] { bg-[#666666] text-[#999999] cursor-not-allowed }
select { text-[#000000] border border-[#000000] rounded-[3px] bg-transparent px-3 py-1.5 }
select:active { text-[#000000] border-[3px] border-[#000000] }
input[type="color"] { w-32 }
input[type="range"] { w-32 }
2025-08-27 20:23:05 +03:00
input[type="text"] { text-[16px] w-64 }
input[type="number"] { w-32 text-[16px] bg-transparent border border-[#000000] rounded-[3px] text-[#000000] hover:border-[3px] hover:border-[#000000] px-3 py-1.5 }
input[type="date"] { w-28 text-[16px] bg-[#1b1b1b] rounded-md text-white hover:bg-[#2a2a2a] active:bg-[#101010] px-3 py-1.5 }
2025-08-15 22:25:35 +03:00
"""
var HTML_CONTENT = """
<head>
2025-11-06 15:39:58 +08:00
<title></title>
2025-08-15 22:25:35 +03:00
</head>
2025-09-07 18:49:32 +03:00
<body style="bg-[#323949] text-white font-sans">
2025-11-06 15:39:58 +08:00
<postprocess preset="crt"></postprocess>
2025-09-07 18:49:32 +03:00
<div style="flex flex-col items-center justify-center w-full mt-12">
2025-11-06 15:39:58 +08:00
<h1 style="target text-8xl font-bold mb-4 text-[#4a9eff] font-serif font-italic"></h1>
<p style="text-lg mb-8 text-[#cccccc]">使LeonBrowser</p>
<p style="text-lg mb-8 text-[#cccccc]">使</p>
2025-09-07 18:49:32 +03:00
</div>
2025-09-05 19:07:21 +03:00
</body>
2025-08-15 22:25:35 +03:00
""".to_utf8_buffer()