From df017472a530df106b35769a9eec8316fdad30e4 Mon Sep 17 00:00:00 2001 From: chinons098 Date: Fri, 22 Dec 2023 00:12:52 -0500 Subject: [PATCH] switched to svg navigation btns --- .../fileexplorer/fileexplorer.component.css | 2 +- .../fileexplorer/fileexplorer.component.html | 38 +++++++++++++-- .../fileexplorer/fileexplorer.component.ts | 48 ++++++++++++------- .../startbutton/startbutton.component.html | 4 +- 4 files changed, 69 insertions(+), 23 deletions(-) diff --git a/src/app/system-apps/fileexplorer/fileexplorer.component.css b/src/app/system-apps/fileexplorer/fileexplorer.component.css index 5251edcd..9443372e 100644 --- a/src/app/system-apps/fileexplorer/fileexplorer.component.css +++ b/src/app/system-apps/fileexplorer/fileexplorer.component.css @@ -68,7 +68,7 @@ width: 10px; image-rendering:optimizeQuality; position: relative; - top: 8px + top: 6px } .figure-alt-caret{ diff --git a/src/app/system-apps/fileexplorer/fileexplorer.component.html b/src/app/system-apps/fileexplorer/fileexplorer.component.html index 32faaa03..88be59a7 100644 --- a/src/app/system-apps/fileexplorer/fileexplorer.component.html +++ b/src/app/system-apps/fileexplorer/fileexplorer.component.html @@ -4,19 +4,49 @@
- + + +
+ + + +
+
- + +
+ + + +
- + +
+ + + +
- + +
+ + + +
diff --git a/src/app/system-apps/fileexplorer/fileexplorer.component.ts b/src/app/system-apps/fileexplorer/fileexplorer.component.ts index f1834583..a24db263 100644 --- a/src/app/system-apps/fileexplorer/fileexplorer.component.ts +++ b/src/app/system-apps/fileexplorer/fileexplorer.component.ts @@ -34,7 +34,6 @@ export class FileexplorerComponent implements OnInit, AfterViewInit, OnDestroy private _refreshNotifySub!:Subscription; private _autoArrangeIconsNotifySub!:Subscription; private _autoAlignIconsNotifyBySub!:Subscription; - private _showDesktopIconNotifySub!:Subscription; private _dirFilesUpdatedSub!: Subscription; @@ -45,6 +44,10 @@ export class FileexplorerComponent implements OnInit, AfterViewInit, OnDestroy clearSearchStyle:Record = {}; searchStyle:Record = {}; btnStyle:Record = {}; + prevNavBtnStyle:Record = {}; + nextNavBtnStyle:Record = {}; + recentNavBtnStyle:Record = {}; + upNavBtnStyle:Record = {}; hasWindow = true; icon = 'osdrive/icons/file_explorer.ico'; @@ -57,9 +60,16 @@ export class FileexplorerComponent implements OnInit, AfterViewInit, OnDestroy files:FileInfo[] = []; + prevPathEntries:string[] = []; + nextPathEntries:string[] = []; + recentPathEntries:string[] = []; + upPathEntries:string[] = ['/osdrive/Desktop']; - private showDesktopIcon = true; + + isPrevBtnActive = false; + isNextBtnActive = false; + isUpBtnActive = false; isFormSubmitted = false; isRenameActive = false; isSearchBoxNotEmpty = false; @@ -106,7 +116,7 @@ export class FileexplorerComponent implements OnInit, AfterViewInit, OnDestroy this._viewByNotifySub = fileManagerService.viewByNotify.subscribe((p) =>{this.changeIconsSize(p)}); this._sortByNotifySub = fileManagerService.sortByNotify.subscribe((p)=>{this.sortIcons(p)}); this._refreshNotifySub = fileManagerService.refreshNotify.subscribe(()=>{this.refreshIcons()}); - this._showDesktopIconNotifySub = fileManagerService.showDesktopIconsNotify.subscribe((p) =>{this.toggleDesktopIcons(p)}); + } ngOnInit():void{ @@ -120,6 +130,7 @@ export class FileexplorerComponent implements OnInit, AfterViewInit, OnDestroy searchInput: '', }); + this.setNavButtonsColor(); this.onHideIconContextMenu(); } @@ -128,13 +139,30 @@ export class FileexplorerComponent implements OnInit, AfterViewInit, OnDestroy } + setNavButtonsColor(){ + this.prevNavBtnStyle ={ + 'fill': '#ccc' + } + + this.nextNavBtnStyle ={ + 'fill': '#ccc' + } + + this.recentNavBtnStyle ={ + 'fill': '#ccc' + } + + this.upNavBtnStyle ={ + 'fill': '#fff' + } + } + ngOnDestroy(): void { this._viewByNotifySub?.unsubscribe(); this._sortByNotifySub?.unsubscribe(); this._refreshNotifySub?.unsubscribe(); this._autoArrangeIconsNotifySub?.unsubscribe(); this._autoAlignIconsNotifyBySub?.unsubscribe(); - this._showDesktopIconNotifySub?.unsubscribe(); this._dirFilesUpdatedSub?.unsubscribe(); } @@ -390,18 +418,6 @@ export class FileexplorerComponent implements OnInit, AfterViewInit, OnDestroy } } - toggleDesktopIcons(showIcons:boolean):void{ - this.showDesktopIcon = showIcons; - if(!this.showDesktopIcon){ - this.btnStyle ={ - 'display': 'none', - } - }else{ - this.btnStyle ={ - 'display': 'block', - } - } - } async refreshIcons():Promise{ this.isHighlighIconDueToPriorActionActive = false; diff --git a/src/app/system-apps/startbutton/startbutton.component.html b/src/app/system-apps/startbutton/startbutton.component.html index 2dff1e68..3da639ba 100644 --- a/src/app/system-apps/startbutton/startbutton.component.html +++ b/src/app/system-apps/startbutton/startbutton.component.html @@ -1,7 +1,7 @@