Skip to content

Commit

Permalink
filetreeview wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chinonso098 committed Sep 19, 2024
1 parent 71b885e commit 3b9964f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,11 @@ export class FileTreeViewComponent implements OnInit, OnChanges {
}

onBtnClick(elmntId:string):void{
// remove style on previous btn
this.removeBtnStyle(this.selectedElementId);
// update id
this.selectedElementId = elmntId
//this.setBtnStyle(id, true);
this.setBtnStyle(elmntId, true);
}

onMouseEnter(elmntId:string):void{
Expand Down Expand Up @@ -286,7 +289,7 @@ export class FileTreeViewComponent implements OnInit, OnChanges {
// btnElement.style.backgroundColor ='#787474'
// }

if(isMouseHover ){
if(!isMouseHover){
btnElement.style.backgroundColor = '#4c4c4c';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
/* Styles for the tabbed window container */
.fileexp-header-tab-container {
width: 100%;
min-width: 610px;
/* border:0.5px solid #9d9d9d; */
}

Expand Down
18 changes: 15 additions & 3 deletions src/app/system-apps/fileexplorer/fileexplorer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@
<div class="nav-path-gen-main-container" id="pathIconBox-{{this.processId}}" >
<span class="span head-nav-path-gen-cntnr0"><figure class="figure-nav-path-gen-cntnr"><img class="img-nav-path-gen-cntnr" [src]="'osdrive/Cheetah/System/Imageres/grey_nav_forward_32.png' | safeResourceUrl"/></figure> </span>
<div class="nav-path-gen-container" *ngFor="let dirHops of _directoryHops let j = index">
<span *ngIf="j > 0" class="span head-nav-path-gen-cntnr"><figure class="figure-nav-path-gen-cntnr"><img class="img-nav-path-gen-cntnr" [src]="'osdrive/Cheetah/System/Imageres/grey_nav_forward_32.png' | safeResourceUrl"/></figure> </span>
<span *ngIf="j > 0" class="span head-nav-path-gen-cntnr">
<figure class="figure-nav-path-gen-cntnr">
<img class="img-nav-path-gen-cntnr" [src]="'osdrive/Cheetah/System/Imageres/grey_nav_forward_32.png' | safeResourceUrl"/>
</figure>
</span>
<span class="span mid-nav-path-gen-cntnr">{{dirHops}}</span>
</div>
</div>
Expand All @@ -191,8 +195,16 @@
<input class="path-input" type="text" placeholder="{{this.directory}}" formControlName="pathInput" autofocus spellcheck="false" id="pathTxtBox-{{this.processId}}" />
</div>

<span class="span head-nav-path-cntnr1" [class.active]="showPathHistory" (click)="hideshowPathHistory()"><figure class="figure-nav-path-cntnr1"><img class="img-nav-path-cntnr1" [src]="'osdrive/Cheetah/System/Imageres/grey_nav_expand_32.png' | safeResourceUrl"/></figure></span>
<span class="span head-nav-path-cntnr2" (click)="refreshIcons()"><figure class="figure-nav-path-cntnr2"><img class="img-nav-path-cntnr2" [src]="'osdrive/Cheetah/System/Imageres/grey_nav_refresh_32.png' | safeResourceUrl"/></figure></span>
<span class="span head-nav-path-cntnr1" [class.active]="showPathHistory" (click)="hideshowPathHistory()">
<figure class="figure-nav-path-cntnr1">
<img class="img-nav-path-cntnr1" [src]="'osdrive/Cheetah/System/Imageres/grey_nav_expand_32.png' | safeResourceUrl"/>
</figure>
</span>
<span class="span head-nav-path-cntnr2" (click)="refreshIcons()">
<figure class="figure-nav-path-cntnr2">
<img class="img-nav-path-cntnr2" [src]="'osdrive/Cheetah/System/Imageres/grey_nav_refresh_32.png' | safeResourceUrl"/>
</figure>
</span>
</div>
</form>

Expand Down

0 comments on commit 3b9964f

Please sign in to comment.