@@ -120,7 +120,7 @@ func NewDirModel(nav *Navigation, filters ...filter.EntryFilter) *DirModel {
120120 columns : Columns {
121121 {Title : "" , Width : 5 , Fixed : true },
122122 {Title : "" , Hidden : func (_ int ) bool { return true }},
123- {Title : "Name" , SortKey : structure .SortPath , WidthRatio : 0.25 },
123+ {Title : "Name" , SortKey : structure .SortPath , WidthRatio : 0.35 },
124124 {
125125 Title : "Size" ,
126126 SortKey : structure .SortSize ,
@@ -130,13 +130,13 @@ func NewDirModel(nav *Navigation, filters ...filter.EntryFilter) *DirModel {
130130 {
131131 Title : "Total Dirs" ,
132132 SortKey : structure .SortTotalDirs ,
133- WidthRatio : DefaultColWidthRatio ,
133+ WidthRatio : 0.07 ,
134134 Hidden : func (fw int ) bool { return fw < 100 },
135135 },
136136 {
137137 Title : "Total Files" ,
138138 SortKey : structure .SortTotalFiles ,
139- WidthRatio : DefaultColWidthRatio ,
139+ WidthRatio : 0.07 ,
140140 Hidden : func (fw int ) bool { return fw < 100 },
141141 },
142142 {
@@ -539,8 +539,6 @@ func (dm *DirModel) updateTableData() {
539539 }
540540
541541 nameCol , _ := dm .columns .Get (2 )
542- sizeCol , _ := dm .columns .Get (3 )
543- usageCol , _ := dm .columns .Get (7 )
544542 pgCol , _ := dm .columns .Get (8 )
545543
546544 dm .dirsTable .SetColumns (dm .columns .TableColumns (dm .width , dm .sortState ))
@@ -574,11 +572,11 @@ func (dm *DirModel) updateTableData() {
574572 EntryIcon (child ),
575573 child .Name (),
576574 WrapString (child .Name (), nameCol .Width ),
577- FmtSizeColor (child .Size , entrySizeWidth , sizeCol . Width ),
578- totalDirs ,
579- totalFiles ,
580- time .Unix (child .ModTime , 0 ).Format ("02 Jan 2006" ),
581- FmtUsage (parentUsage , 20 , usageCol . Width ),
575+ FmtSizeColor (child .Size , entrySizeWidth ),
576+ Faint ( totalDirs ) ,
577+ Faint ( totalFiles ) ,
578+ Faint ( time .Unix (child .ModTime , 0 ).Format ("02 Jan 2006" ) ),
579+ FmtUsage (parentUsage , 20 ),
582580 pgBar ,
583581 },
584582 )
@@ -645,7 +643,7 @@ func (dm *DirModel) viewTopStatusBar() string {
645643 BGColor : sbStyle .BG ,
646644 },
647645 {Content : "TO FREE" , BGColor : style .cs .StatusBar .Dirs .RowsCounter },
648- {Content : FmtSizeColor (selectedSize , 0 , 0 ), BGColor : sbStyle .BG },
646+ {Content : FmtSizeColor (selectedSize , 0 ), BGColor : sbStyle .BG },
649647 }... ,
650648 )
651649
@@ -690,7 +688,7 @@ func (dm *DirModel) viewBottomStatusBar() string {
690688 []* BarItem {
691689 {Content : string (dm .mode ), BGColor : sbStyle .Dirs .ModeBG },
692690 {Content : "SIZE" , BGColor : sbStyle .Dirs .SizeBG },
693- {Content : FmtSizeColor (dm .summaryInfo .size , 0 , 0 ), BGColor : sbStyle .BG },
691+ {Content : FmtSizeColor (dm .summaryInfo .size , 0 ), BGColor : sbStyle .BG },
694692 {Content : "DIRS" , BGColor : sbStyle .Dirs .DirsBG },
695693 {Content : unitFmt (dm .summaryInfo .dirs ), BGColor : sbStyle .BG },
696694 {Content : "FILES" , BGColor : sbStyle .Dirs .FilesBG },
0 commit comments