Skip to content

Instantly share code, notes, and snippets.

@mst-mkt
Last active November 13, 2023 10:20
Show Gist options
  • Save mst-mkt/ff2af3f6934fab204da3ddd85fced1a6 to your computer and use it in GitHub Desktop.
Save mst-mkt/ff2af3f6934fab204da3ddd85fced1a6 to your computer and use it in GitHub Desktop.
時間割ウィジェット
##KUSTOMCLIP##
{
"clip_version": 1,
"clip_cut": [],
"clip_modules": [
{
"internal_type": "StackLayerModule",
"internal_title": "月日",
"config_stacking": "HORIZONTAL_BOTTOM",
"position_anchor": "TOPLEFT",
"position_offset_x": 60.0,
"position_offset_y": 60.0,
"viewgroup_items": [
{
"internal_type": "TextModule",
"internal_title": "月日",
"text_expression": "$df(MM/dd)$",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Jost-500.ttf",
"text_size": 60.0,
"paint_color": "#FF444444"
},
{
"internal_type": "TextModule",
"internal_title": "曜日",
"text_expression": "$tc(cap, gv(utils/days))$.",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"text_size": 30.0,
"paint_color": "#FF444444",
"position_padding_left": 10.0
}
]
},
{
"internal_type": "OverlapLayerModule",
"position_anchor": "TOPLEFT",
"position_offset_x": 60.0,
"position_offset_y": 160.0,
"internal_title": "左バー",
"viewgroup_items": [
{
"internal_type": "ShapeModule",
"shape_type": "CIRCLE",
"paint_color": "#FF444444",
"position_anchor": "TOPLEFT",
"position_offset_x": 60.0,
"internal_title": "丸",
"shape_width": 15.0
},
{
"internal_type": "ProgressModule",
"progress_progress": "CUSTOM",
"progress_level": 0.0,
"progress_mode": "SHAPES",
"progress_count": 65.0,
"progress_rotate_mode": "DEG90",
"color_bgcolor": "#FF444444",
"style_size": 480.0,
"position_anchor": "TOPLEFT",
"position_offset_x": 68.0,
"position_padding_left": 6.0,
"position_padding_right": 6.0,
"position_padding_top": 20.0,
"internal_title": "破線",
"style_width": 40.0
}
]
},
{
"internal_type": "StackLayerModule",
"internal_title": "時間割",
"internal_toggles": {
"config_visible": 10
},
"internal_formulas": {
"config_visible": "$if(df(f)\u003e5|df(f)\u003d2, \"NEVER\", \"ALWAYS\")$"
},
"position_anchor": "TOPLEFT",
"position_offset_x": 80.0,
"position_offset_y": 170.0,
"viewgroup_items": [
{
"internal_type": "OverlapLayerModule",
"internal_title": "1限",
"position_padding_bottom": 5.0,
"viewgroup_items": [
{
"internal_type": "ShapeModule",
"shape_type": "RECT",
"shape_width": 440.0,
"shape_height": 70.0,
"shape_corners": 15.0,
"paint_color": "#FF444444",
"internal_title": "背景",
"position_padding_left": 5.0,
"position_padding_top": 5.0,
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d1,#FF444444,#00000000)$"
}
},
{
"internal_type": "StackLayerModule",
"internal_title": "テキスト",
"position_anchor": "TOPLEFT",
"position_padding_left": 25.0,
"position_padding_top": 12.0,
"viewgroup_items": [
{
"internal_type": "TextModule",
"text_expression": "09:00 ~ 10:30",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"position_padding_left": 3.0,
"internal_title": "時間",
"text_size": 16.0,
"internal_toggles": {
"paint_color": 10,
"paint_mode": 0
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d1,#FFFFFFFF,#FF444444)$",
"paint_mode": "$if(gv(utils/times)\u003d1,#00000000,#FF444444)$"
}
},
{
"internal_type": "TextModule",
"text_expression": "$gv(schedule/gv(utils/days)/1)$",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"internal_title": "教科",
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d1,#FFFFFFFF,#FF444444)$"
}
}
]
}
]
},
{
"internal_type": "OverlapLayerModule",
"internal_title": "2限",
"position_padding_bottom": 5.0,
"viewgroup_items": [
{
"internal_type": "ShapeModule",
"shape_type": "RECT",
"shape_width": 440.0,
"shape_height": 70.0,
"shape_corners": 15.0,
"paint_color": "#FF444444",
"internal_title": "背景",
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d2,#FF444444,#00000000)$"
},
"position_padding_left": 5.0,
"position_padding_top": 5.0
},
{
"internal_type": "StackLayerModule",
"internal_title": "テキスト",
"position_anchor": "TOPLEFT",
"position_padding_left": 25.0,
"position_padding_top": 12.0,
"viewgroup_items": [
{
"internal_type": "TextModule",
"text_expression": "10:40 ~ 12:10",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"position_padding_left": 3.0,
"internal_title": "時間",
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d2,#FFFFFFFF,#FF444444)$"
},
"text_size": 16.0
},
{
"internal_type": "TextModule",
"text_expression": "$gv(schedule/gv(utils/days)/2)$",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"internal_title": "教科",
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d2,#FFFFFFFF,#FF444444)$"
}
}
]
}
]
},
{
"internal_type": "OverlapLayerModule",
"internal_title": "3限",
"position_padding_bottom": 5.0,
"viewgroup_items": [
{
"internal_type": "ShapeModule",
"shape_type": "RECT",
"shape_width": 440.0,
"shape_height": 70.0,
"shape_corners": 15.0,
"paint_color": "#FF444444",
"internal_title": "背景",
"position_padding_left": 5.0,
"position_padding_top": 5.0,
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d3,#FF444444,#00000000)$"
}
},
{
"internal_type": "StackLayerModule",
"internal_title": "テキスト",
"position_anchor": "TOPLEFT",
"position_padding_left": 25.0,
"position_padding_top": 12.0,
"viewgroup_items": [
{
"internal_type": "TextModule",
"text_expression": "13:00 ~ 14:30",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"position_padding_left": 3.0,
"internal_title": "時間",
"text_size": 16.0,
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d3,#FFFFFFFF,#FF444444)$"
}
},
{
"internal_type": "TextModule",
"text_expression": "$gv(schedule/gv(utils/days)/3)$",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"internal_title": "教科",
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d3,#FFFFFFFF,#FF444444)$"
}
}
]
}
]
},
{
"internal_type": "OverlapLayerModule",
"internal_title": "4限",
"position_padding_bottom": 5.0,
"viewgroup_items": [
{
"internal_type": "ShapeModule",
"shape_type": "RECT",
"shape_width": 440.0,
"shape_height": 70.0,
"shape_corners": 15.0,
"paint_color": "#FF444444",
"internal_title": "背景",
"position_padding_left": 5.0,
"position_padding_top": 5.0,
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d4,#FF444444,#00000000)$"
}
},
{
"internal_type": "StackLayerModule",
"internal_title": "テキスト",
"position_anchor": "TOPLEFT",
"position_padding_left": 25.0,
"position_padding_top": 12.0,
"viewgroup_items": [
{
"internal_type": "TextModule",
"text_expression": "14:45 ~ 16:15",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"position_padding_left": 3.0,
"internal_title": "時間",
"text_size": 16.0,
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d4,#FFFFFFFF,#FF444444)$"
}
},
{
"internal_type": "TextModule",
"text_expression": "$gv(schedule/gv(utils/days)/4)$",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"internal_title": "教科",
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d4,#FFFFFFFF,#FF444444)$"
}
}
]
}
]
},
{
"internal_type": "OverlapLayerModule",
"internal_title": "5限",
"position_padding_bottom": 5.0,
"viewgroup_items": [
{
"internal_type": "ShapeModule",
"shape_type": "RECT",
"shape_width": 440.0,
"shape_height": 70.0,
"shape_corners": 15.0,
"paint_color": "#FF444444",
"internal_title": "背景",
"position_padding_left": 5.0,
"position_padding_top": 5.0,
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d5,#FF444444,#00000000)$"
}
},
{
"internal_type": "StackLayerModule",
"internal_title": "テキスト",
"position_anchor": "TOPLEFT",
"position_padding_left": 25.0,
"position_padding_top": 12.0,
"viewgroup_items": [
{
"internal_type": "TextModule",
"text_expression": "16:30 ~ 18:00",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"position_padding_left": 3.0,
"internal_title": "時間",
"text_size": 16.0,
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d5,#FFFFFFFF,#FF444444)$"
}
},
{
"internal_type": "TextModule",
"text_expression": "$gv(schedule/gv(utils/days)/5)$",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"internal_title": "教科",
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d5,#FFFFFFFF,#FF444444)$"
}
}
]
}
]
},
{
"internal_type": "OverlapLayerModule",
"internal_title": "6限",
"position_padding_bottom": 5.0,
"viewgroup_items": [
{
"internal_type": "ShapeModule",
"shape_type": "RECT",
"shape_width": 440.0,
"shape_height": 70.0,
"shape_corners": 15.0,
"paint_color": "#FF444444",
"internal_title": "背景",
"position_padding_left": 5.0,
"position_padding_top": 5.0,
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d6,#FF444444,#00000000)$"
}
},
{
"internal_type": "StackLayerModule",
"internal_title": "テキスト",
"position_anchor": "TOPLEFT",
"position_padding_left": 25.0,
"position_padding_top": 12.0,
"viewgroup_items": [
{
"internal_type": "TextModule",
"text_expression": "18:15 ~ 19:45",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"position_padding_left": 3.0,
"internal_title": "時間",
"text_size": 16.0,
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d6,#FFFFFFFF,#FF444444)$"
}
},
{
"internal_type": "TextModule",
"text_expression": "$gv(schedule/gv(utils/days)/6)$",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"internal_title": "教科",
"internal_toggles": {
"paint_color": 10
},
"internal_formulas": {
"paint_color": "$if(gv(utils/times)\u003d6,#FFFFFFFF,#FF444444)$"
}
}
]
}
]
}
]
},
{
"internal_type": "StackLayerModule",
"internal_title": "休み",
"internal_toggles": {
"config_visible": 10
},
"internal_formulas": {
"config_visible": "$if(df(f)\u003e5|df(f)\u003d2, \"ALWAYS\", \"NEVER\")$"
},
"position_offset_y": 80.0,
"viewgroup_items": [
{
"internal_type": "TextModule",
"text_expression": "本日の授業はありません。",
"text_family": "kfile://org.kustom.space.kwgt_000021/fonts/Zen Kaku Gothic New-900.ttf",
"paint_color": "#FF444444",
"position_padding_left": 100.0,
"position_padding_right": 100.0,
"position_padding_top": 200.0,
"position_padding_bottom": 200.0
}
]
}
]
}
##KUSTOMCLIP##
##KUSTOMCLIP##
{
"clip_version": 1,
"clip_settings": {
"background_type": "SOLID",
"background_color": "#00FFFFFF"
}
}
##KUSTOMCLIP##
##KUSTOMCLIP##
{
"clip_version": 1,
"clip_settings": {}
}
##KUSTOMCLIP##
##KUSTOMCLIP##
{
"clip_version": 1,
"KUSTOM_GLOBAL": {
"subjects": {
"index": 0,
"type": "FOLDER",
"title": "subjects",
"key": "subjects"
},
"schedule": {
"index": 0,
"type": "FOLDER",
"title": "schedule",
"key": "schedule"
},
"utils": {
"index": 0,
"type": "FOLDER",
"title": "utils",
"key": "utils"
}
}
}
##KUSTOMCLIP##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment