From 3e3000de622cb2f848babaa723caad189bc2d73e Mon Sep 17 00:00:00 2001 From: svkalinin Date: Wed, 7 Dec 2022 09:08:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B8=D0=BA=D0=BE=D0=B3=D0=BD=D0=BA=D1=83=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2=20git?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/image_library.tcl | 18 +++++++++++++++++- lib/tree.tcl | 4 ++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/lib/image_library.tcl b/lib/image_library.tcl index 1723b4d..5f00ceb 100644 --- a/lib/image_library.tcl +++ b/lib/image_library.tcl @@ -1363,4 +1363,20 @@ image create photo csr_16x12 -data { kfgEeiV9/DDABoBBIAN6igxorfE0CIJNgNJNelcoC7oETqyp+S4GkvTrZ0lnwEPpJr2LUUTsLWfu VqIgPjvnLr45mBnAGkZRxv7SRG0lagtfFWR2IQ04e8UAAAAASUVORK5CYII= } - +image create photo git_16x12 -data { + iVBORw0KGgoAAAANSUhEUgAAABAAAAAMCAYAAABr5z2BAAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9 + kT1Iw0AcxV9TS0UqDnYQcchQnSz4hYiTVqEIFUKt0KqDyaUfQpOGJMXFUXAtOPixWHVwcdbVwVUQ + BD9AHJ2cFF2kxP8lhRYxHhz34929x907QKiXmWZ1jACabpvpZELM5lbE8CsiCCOEaYzKzDJmJSkF + 3/F1jwBf7+I8y//cn6NbzVsMCIjEM8wwbeJ14slN2+C8TxxlJVklPiceNumCxI9cVzx+41x0WeCZ + UTOTniOOEovFNlbamJVMjXiCOKZqOuULWY9VzluctXKVNe/JXxjJ68tLXKc5gCQWsAgJIhRUsYEy + bMRp1UmxkKb9hI+/3/VL5FLItQFGjnlUoEF2/eB/8LtbqzA+5iVFEkDoxXE+BoHwLtCoOc73seM0 + ToDgM3Clt/yVOjD1SXqtpcWOgJ5t4OK6pSl7wOUO0PdkyKbsSkGaQqEAvJ/RN+WA3luga9XrrbmP + 0wcgQ12lboCDQ2CoSNlrPu/ubO/t3zPN/n4AtjZywjCqfNkAAAAGYktHRAD/AP8A/6C9p5MAAAAJ + cEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfmDAcGATEYpspOAAABMUlEQVQoz42SsUoDQRRFz+yM + G5CQ0sbC2iqNECwWUUTUQgj5AasUi4sfE8hPSEgjwcZCUkRIYWNnpZWlRI1keLvPZgXd7AZv+Zhz + Zu5jDCVJkqThvR+qqjjnOv1+/4OKBMVBt9td896fqeoBcJSm6SiO4/q/BEmSNIA7YBO4AB5VNVol + Mb/hxWJxA+zmo23n3KeIvAAYY8bW2tNiHVsBA1gRuTfGvAKHwJaqRq1W62o6nfo/Fbz3wwIMsGGt + vQTesyxrAg+qGonIYGkHqipU5zwIgjdglldxSwLnXMcYMy6Ac1X9AnaAZ2APmIRh2C5dYhzH9TRN + R6oaAWRZ1lTVubX2KT8yqdVqx71eb1YqKJHcAh44qYKXBPlHWgeugf1VN1cKfl4iIgNjjAvDsF0F + A3wD9EWTx4J8PxsAAAAASUVORK5CYII= +} diff --git a/lib/tree.tcl b/lib/tree.tcl index 8fb9eae..340bc25 100644 --- a/lib/tree.tcl +++ b/lib/tree.tcl @@ -31,6 +31,8 @@ namespace eval Tree { set findImg [::FindImage gitlab] } elseif {[string match {*bitbucket*} [string tolower $text]]} { set findImg [::FindImage bitbucket] + } elseif {[string match {\.git*} [string tolower $text]]} { + set findImg [::FindImage git] } if {$fileExt ne "" || $findImg ne ""} { set image $findImg @@ -47,6 +49,8 @@ namespace eval Tree { set image [::FindImage redhat] } elseif {[string match {*gitlab*} [string tolower [file tail $item]]]} { set image [::FindImage gitlab] + } elseif {[string match {.git} [string tolower [file tail $item]]]} { + set image [::FindImage git] } else { set image pixel }