灵符lingfu
L

ling-miao

↓ 0 ดาวน์โหลด

miao: a Ling-native version control system — temples, souls, rites and talismans instead of repos, branches, commits and tags; adaptive whole/delta/chunk storage; SSH temple fairs for sharing; a LingStationX-themed GUI; ROYGBIV everywhere

Windows · x86-64macOS · Intel x86-64Linux · x86-64LingOS · Pi 5 ARM64
คีย์เวิร์ด vcs, version-control, git, miao, ling
lingfu install ling-miao
โฮมเพจhttps://ling-lang.org
ที่เก็บโค้ดhttps://github.com/taellinglin/ling
ใบอนุญาตApache-2.0 OR MIT
ผู้เขียนling-lin
READMEโค้ด / ไฟล์รุ่นกราฟการพึ่งพาแพ็กเกจที่พึ่งพาความปลอดภัยบิลด์การตั้งค่า

โค้ด / ไฟล์ (268)

ling/theme.ling
# theme.ling - LingDev colours and layout, in the LingStationX look.
# Colours are packed numbers (r*65536 + g*256 + b): egui-dark chrome with the ROYGBIV key palette.

bind MENU_H = 24.0
bind TABS_H = 28.0
bind TOOL_H = 40.0
bind STATUS_H = 22.0

bind C_BG_APP = 1776411.0        # 27,27,27
bind C_BG_PANEL = 1776411.0      # 27,27,27
bind C_BG_DEEP = 657930.0        # 10,10,10
bind C_BG_SIDE = 1447706.0       # 22,23,26
bind C_LINE = 3947580.0          # 60,60,60
bind C_LINE_SOFT = 2763826.0     # 42,44,50
bind C_TEXT = 13488344.0         # 205,208,216
bind C_TEXT_DIM = 9212056.0      # 140,144,152
bind C_TEXT_STRONG = 16119285.0  # 245,245,245
bind C_BTN = 3947580.0           # 60,60,60
bind C_BTN_HOV = 4868682.0       # 74,74,74
bind C_BTN_ACT = 2960685.0       # 45,45,45
bind C_SEL = 23680.0             # 0,92,128
bind C_SEL_ROW = 2503756.0       # 38,52,76
bind C_HOVER_ROW = 1975340.0     # 30,36,44
bind C_VIEW_BG = 526603.0        # 8,9,11
bind C_RULER = 1184792.0         # 18,20,24
bind C_HDR_LINE = 1842722.0      # 28,30,34
bind C_GRID_MIN = 1316378.0      # 20,22,26
bind C_GRID_MAJ = 2237998.0      # 34,38,46
bind C_PLAYHEAD = 16733766.0     # 255,86,70
bind C_LOOP = 5929180.0          # 90,120,220
bind C_LOOP_EDGE = 9221375.0     # 140,180,255
bind C_RED = 15551031.0          # 237,74,55
bind C_ORANGE = 16225310.0       # 247,148,30
bind C_YELLOW = 16242758.0       # 247,216,70
bind C_GREEN = 4573296.0         # 69,200,112
bind C_BLUE = 3910379.0          # 59,170,235
bind C_INDIGO = 4875480.0        # 74,100,216
bind C_VIOLET = 10114006.0       # 154,83,214
bind C_MENU_FILE = 15417396.0    # 235,64,52
bind C_MENU_EDIT = 16747560.0    # 255,140,40
bind C_MENU_VIEW = 16108870.0    # 245,205,70
bind C_MENU_SCENE = 5294200.0    # 80,200,120
bind C_MENU_PLAY = 3910379.0     # 59,170,235
bind C_MENU_BUILD = 4875480.0    # 74,100,216
bind C_MENU_HELP = 7885010.0     # 120,80,210
bind C_FOLDER = 7247615.0        # 110,150,255
bind C_FILEICON = 7915660.0      # 120,200,140
bind C_POPUP = 1973794.0         # 30,30,34
bind C_POPUP_LINE = 4605518.0    # 70,70,78
bind C_WHITE = 16777215.0
bind C_AXIS_X = 15551031.0
bind C_AXIS_Y = 4573296.0
bind C_AXIS_Z = 3910379.0
bind C_GIZMO = 16242758.0

# colour of a node kind (hierarchy rows, viewport gizmos, timeline layers)
fn kind_col(k) {
    if k == "camera" { return C_BLUE }
    if k == "light" { return C_YELLOW }
    if k == "model" || k == "actor" { return C_ORANGE }
    if k == "spawn" { return C_GREEN }
    if k == "trigger" { return C_VIOLET }
    if k == "audio" || k == "music" || k == "midi" { return C_INDIGO }
    if k == "panel" || k == "label" || k == "button" || k == "image" || k == "bar" { return C_RED }
    if k == "empty" { return C_TEXT_DIM }
    if k == "swarm" { return C_TEXT }
    if k == "knot" { return C_YELLOW }
    return c_mix(C_TEXT, C_BLUE, 0.35)
}

# ROYGBIV by index (layers, tracks)
fn c_pal(i) {
    bind k = floor(i) % 7.0
    if k < 0.5 { return C_RED }
    if k < 1.5 { return C_ORANGE }
    if k < 2.5 { return C_YELLOW }
    if k < 3.5 { return C_GREEN }
    if k < 4.5 { return C_BLUE }
    if k < 5.5 { return C_INDIGO }
    return C_VIOLET
}

← กลับไปดัชนี