aboutsummaryrefslogtreecommitdiffstats
path: root/tagit/tiles/tile.kv
blob: fcd9821229ec422b79cdc8ffb60b6a2f868c6244 (plain)
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

<Tile>:
    title: ''
    tooltip: ''
    default_size: None, None

<TileTabular>:
    # config
    font_size: sp(15)
    keywidth: 0.5

    # table
    rows: rows
    TileTabularLine:
        id: rows
        orientation: 'tb-lr'
        size_hint: 1, 1

<TileTabularLine@StackLayout>:
    spacing: 10

<TileTabularRow>:
    orientation: 'horizontal'
    size_hint: 1, None
    height: self.minimum_height
    spacing: 10

<TileTabularCell>:
    valign: 'top'
    height: self.texture_size[1]
    text_size: self.width, None

<TileWithLabel>:
    text: ''
    text_align: 'left', 'top'
    font_size: sp(15)
    Label:
        text: root.text
        markup: True
        text_size: root.size
        font_size: root.font_size
        halign: root.text_align[0]
        valign: root.text_align[1]

## EOF ##