Skip to content

Commit

Permalink
Fix look of SnackbarNomadHelperUrl in Dark mode
Browse files Browse the repository at this point in the history
(reference #54)
  • Loading branch information
piotrzarzycki21 committed May 20, 2024
1 parent 6d0628d commit e579cf5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ package controller
{
// Retrieve the configred nomadhelper.html URL
var loginProxy:ProxyLogin = facade.retrieveProxy(ProxyLogin.NAME) as ProxyLogin;
var nomadHelperUrl:String = loginProxy.config.config.nomad_helper_url;
data = note.getBody();

var link:String = note.getBody().link;
window["onmessage"] = null;

if (nomadHelperUrl) // if a nomadhelper.html URL is configured, try to open the URL with nomadhelper.html first
if (loginProxy.isNomadHelperUrlExists()) // if a nomadhelper.html URL is configured, try to open the URL with nomadhelper.html first
{
// find the placeholder iframe defined in MainContent.mxml
var mainMediator:MediatorMainContentView = facade.retrieveMediator(MediatorMainContentView.NAME) as MediatorMainContentView;
Expand All @@ -44,6 +43,7 @@ package controller

// initialize the iframe with the Nomad URL. This will trigger the logic in nomadhelper.html
var encodedLink:String = encodeURIComponent(link);
var nomadHelperUrl:String = loginProxy.config.config.nomad_helper_url;
nomadHelper.src = nomadHelperUrl + "?link=" + encodedLink;
}
else // otherwise, don't use nomadhelper.html. Open the Nomad link in a new tab. If Nomad is open already, the database will be opened in the original tab
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@
</j:IconButton>
</j:HGroup>
<j:HGroup gap="2">
<html:Div text="Open in Notes" click="onOpenInNotesClick(event)" className="jewel snackbar-action">
<html:beads>
<j:Button text="Open in Notes" click="onOpenInNotesClick(event)">
<j:beads>
<j:Disabled disabled="{configurationNomadUrl == null || configurationNomadUrl == ''}"/>
</html:beads>
</html:Div>
<html:Div text="Open in Nomad" click="onOpenInNomadClick(event)" className="jewel snackbar-action">
<html:beads>
</j:beads>
</j:Button>
<j:Button text="Open in Nomad" click="onOpenInNomadClick(event)">
<j:beads>
<j:Disabled disabled="{configurationNomadUrl == null || configurationNomadUrl == ''}"/>
</html:beads>
</html:Div>
</j:beads>
</j:Button>
</j:HGroup>
</j:VGroup>
</html:Li>
Expand Down
32 changes: 22 additions & 10 deletions Super.Human.Portal_Royale/src/resources/themes/dark/defaults.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e579cf5

Please sign in to comment.