@@ -44,7 +44,6 @@ class ArgoViewer extends LitElement {
4444 .search-container {
4545 margin: 16px 12px;
4646 height: 32px;
47- background: #ece7f8;
4847 border-radius: 9999px;
4948 display: flex;
5049 align-items: center;
@@ -53,8 +52,6 @@ class ArgoViewer extends LitElement {
5352
5453 .search-field {
5554 width: 100%;
56- --md-filled-text-field-container-color: transparent;
57- --md-ref-shape-corner-radius: 9999px;
5855 overflow: hidden;
5956 }
6057
@@ -94,35 +91,40 @@ class ArgoViewer extends LitElement {
9491 justify-content: space-between;
9592 }
9693
97- .status-title {
98- font-size: 12px;
99- font-weight: 500;
100- color: #6b6b6b;
101- margin-bottom: 4px;
94+ .status-container {
95+ display: flex;
96+ gap: 8px;
97+ align-items: center;
98+ justify-content: start;
99+ margin-bottom: 8px;
102100 }
103101
104- .status-ready {
105- font-size: 11px;
102+ .status-title {
103+ display: block;
104+ font-size: 12px;
106105 font-weight: 500;
107106 color: #6b6b6b;
108107 margin-bottom: 4px;
109108 }
110109
111- .status-page-title {
110+ .status-content {
112111 font-size: 14px;
113112 font-weight: 500;
114113 color: #000;
115- margin-bottom: 8px;
116114 }
117115
118116 img.favicon {
119- width: 20px !important;
120- height: 20px !important;
117+ width: var(--md-icon-size) !important;
118+ height: var(--md-icon-size) !important;
121119 flex: 0 0 auto;
122120 object-fit: cover;
123121 border-radius: 4px;
124122 filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.6));
125123 }
124+
125+ md-icon[filled] {
126+ font-variation-settings: "FILL" 1;
127+ }
126128 ` ,
127129 ] ;
128130
@@ -570,7 +572,7 @@ class ArgoViewer extends LitElement {
570572 }
571573
572574 get notRecordingMessage ( ) {
573- return "Not Archiving this Tab " ;
575+ return "Archiving Disabled " ;
574576 }
575577
576578 renderStatusCard ( ) {
@@ -605,7 +607,7 @@ class ArgoViewer extends LitElement {
605607 // @ts -expect-error - TS2339 - Property 'pageUrl' does not exist on type 'ArgoViewer'.
606608 this . pageTitle
607609 ? html `
608- < div style =" display: flex; align-items: start; gap: 0.5rem; ">
610+ < div class =" status-container ">
609611 < img
610612 src ="${
611613 // @ts -expect-error - TS2339 - Property 'favIconUrl' does not exist on type 'ArgoViewer'.
@@ -614,7 +616,7 @@ class ArgoViewer extends LitElement {
614616 alt ="Favicon "
615617 class ="favicon "
616618 />
617- < span class ="status-page-title "
619+ < span class ="status-content "
618620 > ${
619621 //@ts -expect-error - TS2339 - Property 'pageTitle' does not exist on type 'ArgoViewer'.
620622 truncateString ( this . pageTitle )
@@ -644,15 +646,20 @@ class ArgoViewer extends LitElement {
644646 // @ts -expect-error - TS2339 - Property 'status' does not exist on type 'ArgoViewer'.
645647 this . status ?. numPending || 0 ,
646648 ) }
647- style="--md-sys-color-primary: #7b1fa2; width: 100%; margin-bottom: 0.5rem;"
649+ style="width: 100%; margin-bottom: 0.5rem;"
648650 > </ md-linear-progress >
649651 `
650652 : ""
651653 }
652654 ${
653655 // @ts -expect-error - TS2339 - Property 'status' does not exist on type 'ArgoViewer'. | TS2339 - Property 'status' does not exist on type 'ArgoViewer'.
654656 ! this . status ?. numPending
655- ? html `< span class ="status-ready "> All resources archived</ span > `
657+ ? html `< div class ="status-container ">
658+ < md-icon filled style ="color: var(--md-sys-color-primary); "
659+ > check_circle</ md-icon
660+ >
661+ < span class ="status-content "> All resources archived</ span >
662+ </ div > `
656663 : ""
657664 }
658665 </ div > ` ;
@@ -695,30 +702,43 @@ class ArgoViewer extends LitElement {
695702 if ( this . pageUrl ?. startsWith ( this . extRoot ) ) {
696703 return html `
697704 < span class ="status-title "> Status</ span >
698- < p class ="is-size-7 ">
699- This page is part of the extension. You can view existing archived
700- items from here. To start a new archiving session, click the
701- < wr-icon .src ="${ wrRec } "> </ wr-icon > Start Archiving button and enter
702- a new URL.
705+ < p class ="is-size-7 status-content ">
706+ This page is part of the extension.
703707 </ p >
704708 ` ;
705709 }
706710
707711 return html ` < span class ="status-title "> Status</ span >
708- < br />
709- < p > Can't archive this page.</ p > ` ;
712+ < div class ="status-container ">
713+ < md-icon filled style ="color: var(--md-sys-color-secondary) "
714+ > folder_off</ md-icon
715+ >
716+ < span class ="status-content "> Can't archive this page.</ span >
717+ </ div > ` ;
710718 }
711719
712720 // @ts -expect-error - TS2339 - Property 'waitingForStart' does not exist on type 'ArgoViewer'.
713721 if ( this . waitingForStart ) {
714722 return html ` < span class ="status-title "> Status</ span >
715- < br />
716- < p > Archiving will start after the page reloads...</ p > ` ;
723+ < div class ="status-container ">
724+ < md-icon filled style ="color: var(--md-sys-color-secondary) "
725+ > folder_off</ md-icon
726+ >
727+ < span class ="status-content "
728+ > Archiving will start after page reloads…</ span
729+ >
730+ </ div > ` ;
717731 }
718732
719- return html ` < span class ="status-title "> Status</ span >
720- < br />
721- < p > ${ this . notRecordingMessage } </ p > ` ;
733+ return html `
734+ < span class ="status-title "> Status</ span >
735+ < div class ="status-container ">
736+ < md-icon filled style ="color: var(--md-sys-color-secondary) "
737+ > folder_off</ md-icon
738+ >
739+ < span class ="status-content "> ${ this . notRecordingMessage } </ span >
740+ </ div >
741+ ` ;
722742 }
723743
724744 renderSearch ( ) {
@@ -774,11 +794,7 @@ class ArgoViewer extends LitElement {
774794 ! this . recording
775795 ? html `
776796 < md-filled-button
777- style ="
778- --md-sys-color-primary-container: #7b1fa2;
779- color: white;
780- border-radius: 9999px;
781- "
797+ style ="color: white; border-radius: 9999px; "
782798 ?disabled =${ this . actionButtonDisabled ||
783799 // @ts -expect-error - TS2339 - Property 'canRecord' does not exist on type 'ArgoViewer'.
784800 ! this . canRecord }
@@ -800,11 +816,10 @@ class ArgoViewer extends LitElement {
800816 `
801817 : html `
802818 < md-outlined-button
803- style ="--md-sys-color-primary: #b00020; --md-sys-color-outline: #b00020; border-radius: 9999px; "
804819 ?disabled =${ this . actionButtonDisabled }
805820 @click =${ this . onStop }
806821 >
807- < md-icon slot ="icon " style =" color:#b00020 " > pause</ md-icon >
822+ < md-icon slot ="icon "> pause</ md-icon >
808823 Pause Archiving
809824 </ md-outlined-button >
810825 `
0 commit comments