Check-in [2222b5b7b0]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:add pattern matching to materialicons as described in ticket [797b5ba3a2]
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2222b5b7b04a0fd8a2948adc469621670ed83ce0
User & Date: chw 2019-05-17 04:34:23.445
Context
2019-05-18
04:49
add tcl upstream changes check-in: 85c61ccaa5 user: chw tags: trunk
2019-05-17
04:34
add pattern matching to materialicons as described in ticket [797b5ba3a2] check-in: 2222b5b7b0 user: chw tags: trunk
2019-05-16
07:42
cleanup in tkconclient check-in: 87a26578f9 user: chw tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to assets/materialicons0.2/README.md.
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
    package require tdom
    package require tksvg

Usage
-----

    package require MaterialIcons
    MaterialIcons names
    MaterialIcons svg name ?color? ?opacity? ?stroke? ?strokewidth?
    MaterialIcons image name ?size? ?color? ?opacity?
    MaterialIcons image_nc name ?size? ?color? ?opacity?
    MaterialIcons image_ncg name imgname ?options?
    MaterialIcons flush
    MaterialIcons rebuild

Method `names` returns an alphabetically sorted list of all icon names.


Method `svg` returns an SVG string for the icon `name` with optional fill
color `color` (defaults to black), optional fill opacity `opacity`
(defaults to 1.0), optional stroke color `stroke` (defaults to none),
and optional stroke width `strokewidth` (defaults to 1.0).

Method `image` creates and returns a photo image for the icon `name` with







|







|
>







16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
    package require tdom
    package require tksvg

Usage
-----

    package require MaterialIcons
    MaterialIcons names ?pattern?
    MaterialIcons svg name ?color? ?opacity? ?stroke? ?strokewidth?
    MaterialIcons image name ?size? ?color? ?opacity?
    MaterialIcons image_nc name ?size? ?color? ?opacity?
    MaterialIcons image_ncg name imgname ?options?
    MaterialIcons flush
    MaterialIcons rebuild

Method `names` returns an alphabetically sorted list of icon names
matching the given `pattern`, or all, if `pattern` is omitted.

Method `svg` returns an SVG string for the icon `name` with optional fill
color `color` (defaults to black), optional fill opacity `opacity`
(defaults to 1.0), optional stroke color `stroke` (defaults to none),
and optional stroke width `strokewidth` (defaults to 1.0).

Method `image` creates and returns a photo image for the icon `name` with
Changes to assets/materialicons0.2/materialicons.tcl.
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
    # Invoke and release initializer.

    _init [file join [file dirname [info script]] MaterialIcons-Regular.svg]
    rename _init {}

    # Return list of icon (glyph) names which can be rendered.

    proc names {} {
	variable glyph
	tailcall lsort [array names glyph]
    }

    # Return SVG for named icon with optional fill color and opacity.

    proc svg {name {color black} {opacity 1.0}
	{stroke none} {strokewidth 1.0}} {
	variable glyph







|

|







72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
    # Invoke and release initializer.

    _init [file join [file dirname [info script]] MaterialIcons-Regular.svg]
    rename _init {}

    # Return list of icon (glyph) names which can be rendered.

    proc names {{pattern *}} {
	variable glyph
	tailcall lsort [array names glyph $pattern]
    }

    # Return SVG for named icon with optional fill color and opacity.

    proc svg {name {color black} {opacity 1.0}
	{stroke none} {strokewidth 1.0}} {
	variable glyph