Skip to content

Commit

Permalink
-#132 customize the interface for it looks to one more similar to the…
Browse files Browse the repository at this point in the history
… of Spotify
  • Loading branch information
unknown authored and unknown committed Mar 15, 2024
1 parent fefbe1d commit bea7a5b
Show file tree
Hide file tree
Showing 21 changed files with 182 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" ?>
<BrandingSet xmlns="http://soap.sforce.com/2006/04/metadata">
<brandingSetProperty>
<propertyName>BRAND_COLOR</propertyName>
<propertyValue>#00FF1A</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>PAGE_BACKGROUND_COLOR</propertyName>
<propertyValue>#191414</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>HEADER_BACKGROUND_COLOR</propertyName>
<propertyValue>#191414</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>BRAND_IMAGE</propertyName>
<propertyValue>/file-asset/unnamed1?v=1</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>BANNER_IMAGE</propertyName>
<propertyValue>/file-asset/Untitled2?v=1</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>GROUPS_BANNER_IMAGE</propertyName>
<propertyValue>/file-asset/Untitled4?v=1</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>GROUP_IMAGE</propertyName>
<propertyValue>/file-asset/Capturesadasd1?v=1</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>PROFILE_BANNER_IMAGE</propertyName>
<propertyValue>/file-asset/Untitled3?v=1</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>USER_IMAGE</propertyName>
<propertyValue>/file-asset/Capturesadasd2?v=1</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>LINK_AS_BACKGROUND</propertyName>
<propertyValue>true</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>OVERRIDE_LOADING_PAGE</propertyName>
<propertyValue>true</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>OVERRIDE_A11Y_COLOR</propertyName>
<propertyValue>#3AC023</propertyValue>
</brandingSetProperty>
<masterLabel>SpotifyApp</masterLabel>
</BrandingSet>
Binary file not shown.
17 changes: 17 additions & 0 deletions force-app/main/default/contentassets/Capturesadasd1.asset-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
<isVisibleByExternalUsers>false</isVisibleByExternalUsers>
<language>en_US</language>
<masterLabel>Capturesadasd1</masterLabel>
<relationships>
<organization>
<access>VIEWER</access>
</organization>
</relationships>
<versions>
<version>
<number>1</number>
<pathOnClient>Capturesadasd.PNG</pathOnClient>
</version>
</versions>
</ContentAsset>
Binary file not shown.
17 changes: 17 additions & 0 deletions force-app/main/default/contentassets/Capturesadasd2.asset-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
<isVisibleByExternalUsers>false</isVisibleByExternalUsers>
<language>en_US</language>
<masterLabel>Capturesadasd2</masterLabel>
<relationships>
<organization>
<access>VIEWER</access>
</organization>
</relationships>
<versions>
<version>
<number>1</number>
<pathOnClient>Capturesadasd.PNG</pathOnClient>
</version>
</versions>
</ContentAsset>
Binary file not shown.
17 changes: 17 additions & 0 deletions force-app/main/default/contentassets/Untitled2.asset-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
<isVisibleByExternalUsers>false</isVisibleByExternalUsers>
<language>en_US</language>
<masterLabel>Untitled2</masterLabel>
<relationships>
<organization>
<access>VIEWER</access>
</organization>
</relationships>
<versions>
<version>
<number>1</number>
<pathOnClient>Untitled.jpg</pathOnClient>
</version>
</versions>
</ContentAsset>
Binary file not shown.
17 changes: 17 additions & 0 deletions force-app/main/default/contentassets/Untitled3.asset-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
<isVisibleByExternalUsers>false</isVisibleByExternalUsers>
<language>en_US</language>
<masterLabel>Untitled3</masterLabel>
<relationships>
<organization>
<access>VIEWER</access>
</organization>
</relationships>
<versions>
<version>
<number>1</number>
<pathOnClient>Untitled.jpg</pathOnClient>
</version>
</versions>
</ContentAsset>
Binary file not shown.
17 changes: 17 additions & 0 deletions force-app/main/default/contentassets/Untitled4.asset-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
<isVisibleByExternalUsers>false</isVisibleByExternalUsers>
<language>en_US</language>
<masterLabel>Untitled4</masterLabel>
<relationships>
<organization>
<access>VIEWER</access>
</organization>
</relationships>
<versions>
<version>
<number>1</number>
<pathOnClient>Untitled.jpg</pathOnClient>
</version>
</versions>
</ContentAsset>
Binary file not shown.
17 changes: 17 additions & 0 deletions force-app/main/default/contentassets/unnamed1.asset-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
<isVisibleByExternalUsers>false</isVisibleByExternalUsers>
<language>en_US</language>
<masterLabel>unnamed1</masterLabel>
<relationships>
<organization>
<access>VIEWER</access>
</organization>
</relationships>
<versions>
<version>
<number>1</number>
<pathOnClient>unnamed.png</pathOnClient>
</version>
</versions>
</ContentAsset>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<LightningExperienceTheme xmlns="http://soap.sforce.com/2006/04/metadata">
<defaultBrandingSet>LEXTHEMINGSpotifyApp</defaultBrandingSet>
<masterLabel>SpotifyApp</masterLabel>
<shouldOverrideLoadingImage>false</shouldOverrideLoadingImage>
</LightningExperienceTheme>
12 changes: 6 additions & 6 deletions force-app/main/default/lwc/popularity/popularity.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ export default class Popularity extends LightningElement {
if (data) {
const popularity = getFieldValue(data, POPULARITY_FIELD);
let color = null;
let textColor = "#000000";
let textColor = "#FFFFFF";

if (popularity == null) {
this.message = null;
} else if (popularity <= 30) {
color = "#d62023";
color = "#004700";
this.message = "this song is bad according to most people";
textColor = "#FDFEFE";
} else if (popularity <= 50) {
color = "#d1d62d";
color = "#007500";
this.message = "not the best song";
} else if (popularity <= 70) {
color = "#72b533";
color = "#00A300";
this.message = "great song";
} else {
this.message = "this song is fire";
color = "#40f702";
color = "#00D100";
textColor = "#191414";
}
document.documentElement.style.setProperty("--bannerColor", color);
document.documentElement.style.setProperty("--textColor", textColor);
Expand Down
5 changes: 3 additions & 2 deletions force-app/main/default/tabs/Album__c.tab-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom69: Guitar</motif>
<icon>01504000000yxlW</icon>
<motif>Custom205: TV Widescreen</motif>
</CustomTab>
5 changes: 3 additions & 2 deletions force-app/main/default/tabs/Artist__c.tab-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom89: Saxophone</motif>
<icon>01504000000yxlb</icon>
<motif>Custom203: TV Widescreen</motif>
</CustomTab>
3 changes: 2 additions & 1 deletion force-app/main/default/tabs/ClientCredential__c.tab-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom15: People</motif>
<icon>01504000000yxnS</icon>
<motif>Custom203: TV Widescreen</motif>
</CustomTab>
3 changes: 2 additions & 1 deletion force-app/main/default/tabs/Log__c.tab-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom44: Hammer</motif>
<icon>01504000000yxnT</icon>
<motif>Custom301: TV Widescreen</motif>
</CustomTab>
5 changes: 3 additions & 2 deletions force-app/main/default/tabs/Playlist__c.tab-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom7: Square</motif>
<icon>01504000000yxlg</icon>
<motif>Custom301: TV Widescreen</motif>
</CustomTab>
5 changes: 3 additions & 2 deletions force-app/main/default/tabs/Track__c.tab-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom21: Computer</motif>
<icon>01504000000yxlR</icon>
<motif>Custom238: TV Widescreen</motif>
</CustomTab>

0 comments on commit bea7a5b

Please sign in to comment.