Compare commits

...

6 Commits

6 changed files with 32 additions and 22 deletions

View File

@ -33,7 +33,7 @@ namespace eval FileOper {
lappend cmd $fileFullPath lappend cmd $fileFullPath
catch $cmd pipe catch $cmd pipe
# puts $pipe # puts $pipe
if [regexp -nocase -- {(\w+)/([[:alnum:]-]+); charset=([[:alnum:]-]+)} $pipe m fType fExt fCharset] { if [regexp -nocase -- {(\w+)/([\w\-_\.]+); charset=([[:alnum:]-]+)} $pipe m fType fExt fCharset] {
puts "$fType $fExt $fCharset" puts "$fType $fExt $fCharset"
} }
switch $opt { switch $opt {

View File

@ -120,6 +120,7 @@ namespace eval Git {
proc Status {} { proc Status {} {
global cfgVariables activeProject global cfgVariables activeProject
cd $activeProject
set cmd exec set cmd exec
lappend cmd $cfgVariables(gitCommand) lappend cmd $cfgVariables(gitCommand)
lappend cmd "status" lappend cmd "status"
@ -127,6 +128,7 @@ namespace eval Git {
lappend cmd "--" lappend cmd "--"
lappend cmd $activeProject lappend cmd $activeProject
catch $cmd pipe catch $cmd pipe
puts $cmd
if [regexp -nocase -- {^fatal:} $pipe match] { if [regexp -nocase -- {^fatal:} $pipe match] {
return return
} }
@ -605,9 +607,9 @@ namespace eval Git {
# Git repo status # Git repo status
foreach { word } [Git::Status] { foreach { word } [Git::Status] {
# puts $word puts $word
if [regexp -nocase -- {([\w\s])([\s\w?]+)\s../(.+?)} $word match v1 v2 fileName] { if [regexp -nocase -- {([\w\s\?])([\s\w\\*\?]+)\s(.+?)} $word match v1 v2 fileName] {
# puts "$v1 $v2 $fileName" puts "$v1 $v2 $fileName"
# $fr.unindexed.t delete 1.0 end # $fr.unindexed.t delete 1.0 end
if {$v1 ne " "} { if {$v1 ne " "} {
$fr.body.lCommit insert end $fileName $fr.body.lCommit insert end $fileName
@ -625,7 +627,8 @@ namespace eval Git {
Git::DialogUpdate $Git::fr Git::DialogUpdate $Git::fr
} }
bind $fr.body.lBox <Return> "Git::CommitAdd $fr" bind $fr.body.lBox <Return> "Git::CommitAdd $fr"
bind $fr.body.lBox <Double-Button-1> "catch {Git::CommitAdd $fr; $fr.body.t delete 0.0 end; $fr.body.tCommit delete 0.0 end}" bind $fr.body.lBox <Double-Button-1> \
"catch {Git::CommitAdd $fr; $fr.body.t delete 0.0 end; $fr.body.tCommit delete 0.0 end}"
bind $fr.body.lBox <Button-1><ButtonRelease-1> "Git::ListBoxPress $fr" bind $fr.body.lBox <Button-1><ButtonRelease-1> "Git::ListBoxPress $fr"
bind $fr.body.lBox <KeyRelease> "Git::Key %K $fr" bind $fr.body.lBox <KeyRelease> "Git::Key %K $fr"

View File

@ -70,7 +70,7 @@ if [info exists cfgVariables(theme)] {
} }
ttk::frame .frmMenu -border 0 -relief raised ttk::frame .frmMenu -border 0 -relief raised
ttk::frame .frmBody -border 1 -relief raised ttk::frame .frmBody -border 0 -relief raised
ttk::frame .frmStatus -border 0 -relief raised ttk::frame .frmStatus -border 0 -relief raised
pack .frmMenu -side top -padx 1 -fill x pack .frmMenu -side top -padx 1 -fill x
pack .frmBody -side top -padx 1 -fill both -expand true pack .frmBody -side top -padx 1 -fill both -expand true
@ -122,7 +122,7 @@ pack $frmTool.btn_tree $frmTool.btn_search $frmTool.btn_git -side top -padx 1 -p
# #pack $frmTool.lbl_logo -side bottom -padx 5 -pady 5 # #pack $frmTool.lbl_logo -side bottom -padx 5 -pady 5
# #
# # Дерево с полосами прокрутки # # Дерево с полосами прокрутки
set frmTree [ttk::frame .frmBody.frmTree] set frmTree [ttk::frame .frmBody.frmTree -border 0]
set tree [ttk::treeview $frmTree.tree -show tree \ set tree [ttk::treeview $frmTree.tree -show tree \
-xscrollcommand [list .frmBody.frmTree.h set] \ -xscrollcommand [list .frmBody.frmTree.h set] \

View File

@ -10,7 +10,7 @@ exec wish "$0" -- "$@"
###################################################### ######################################################
# Version: 2.0.0 # Version: 2.0.0
# Release: alpha # Release: alpha
# Build: 11112022131048 # Build: 15112022153646
###################################################### ######################################################
# определим текущую версию, релиз и т.д. # определим текущую версию, релиз и т.д.

View File

@ -61,7 +61,7 @@ namespace eval ttk::theme::black {
-selectbackground $colors(-selectbg) \ -selectbackground $colors(-selectbg) \
-selectforeground $colors(-selectfg) \ -selectforeground $colors(-selectfg) \
-selectborderwidth 0 \ -selectborderwidth 0 \
-font TkDefaultFont \ -font "{Droid Sans Mono} 9" \
; ;
$styleCmd map "." \ $styleCmd map "." \
@ -74,17 +74,17 @@ namespace eval ttk::theme::black {
# ttk widgets. # ttk widgets.
$styleCmd configure TButton \ $styleCmd configure TButton \
-width -8 -padding {5 1} -relief raised -width -8 -padding {5 1} -relief link
$styleCmd configure TMenubutton\ $styleCmd configure TMenubutton\
-width -11 -padding {5 1} -relief raised -relief flat -arrowsize 0
$styleCmd configure TCheckbutton \ $styleCmd configure TCheckbutton \
-indicatorbackground "#ffffff" -indicatormargin {1 1 4 1} -indicatorbackground $colors(-lighter) -indicatormargin {1 1 4 1}
$styleCmd configure TRadiobutton \ $styleCmd configure TRadiobutton \
-indicatorbackground "#ffffff" -indicatormargin {1 1 4 1} -indicatorbackground $colors(-lighter) -indicatormargin {1 1 4 1}
$styleCmd configure TEntry \ $styleCmd configure TEntry \
-fieldbackground white -foreground black \ -fieldbackground gray20 -foreground black \
-padding {2 0} -padding {2 0} -border -1
$styleCmd configure TCombobox \ $styleCmd configure TCombobox \
-fieldbackground white -foreground black \ -fieldbackground white -foreground black \
-padding {2 0} -padding {2 0}
@ -92,8 +92,11 @@ namespace eval ttk::theme::black {
-fieldbackground white -foreground black \ -fieldbackground white -foreground black \
-padding {2 0} -padding {2 0}
$styleCmd configure TNotebook \
-border -1
$styleCmd configure TNotebook.Tab \ $styleCmd configure TNotebook.Tab \
-padding {6 2 6 2} -padding {6 2 6 2} \
-border -1
$styleCmd map TNotebook.Tab -background [list \ $styleCmd map TNotebook.Tab -background [list \
selected $colors(-lighter)] selected $colors(-lighter)]
@ -105,14 +108,16 @@ namespace eval ttk::theme::black {
$styleCmd configure TreeCtrl \ $styleCmd configure TreeCtrl \
-background gray30 -itembackground {gray60 gray50} \ -background gray30 -itembackground {gray60 gray50} \
-itemfill white -itemaccentfill yellow -itemfill white -itemaccentfill yellow -border -1
$styleCmd map Treeview\ $styleCmd map Treeview\
-background [list selected $colors(-selectbg)] \ -background [list selected $colors(-lighter)] \
-foreground [list selected $colors(-selectfg)] -foreground [list selected $colors(-selectfg)]
# -background [list selected $colors(-selectbg)] \
$styleCmd configure Treeview -fieldbackground $colors(-lighter) $styleCmd configure Treeview -fieldbackground gray25
} }
puts [ttk::style element names]
} }
# A few tricks for Tablelist. # A few tricks for Tablelist.

View File

@ -85,6 +85,8 @@ namespace eval ttk::theme::dark {
-fieldbackground $colors(-lightframe) \ -fieldbackground $colors(-lightframe) \
-foreground #ffffff -foreground #ffffff
ttk::style configure TScrollbar -relief flat -border 0
# ttk::style configure TNotebook # ttk::style configure TNotebook
# -bordercolor $colors(-frame) # -bordercolor $colors(-frame)
ttk::style configure TNotebook.Tab \ ttk::style configure TNotebook.Tab \