Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1003450 // substanceLAF - enable Substance look and feel (idempotent)

JavaX fragment (include)

1  
static S substanceLAF_defaultSkin = "Creme";
2  
3  
static void substanceLAF() {
4  
  substanceLAF(null);
5  
}
6  
7  
static void substanceLAF(S skinName) {
8  
  pcall {
9  
    enableSubstance_impl(or2(skinName, substanceLAF_defaultSkin));
10  
  }
11  
}

Author comment

Now also makes frames LAF-decorated (nicer, and makes title bar modifiable!)

Skins:

http://insubstantial.github.io/insubstantial/substance/docs/skins/toneddown.html
http://insubstantial.github.io/insubstantial/substance/docs/skins/dark.html
http://insubstantial.github.io/insubstantial/substance/learn.html

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003450
Snippet name: substanceLAF - enable Substance look and feel (idempotent)
Eternal ID of this version: #1003450/4
Text MD5: 1396e8ebffbab090ec496c187a77d3c5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-02 03:04:33
Source code size: 231 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 599 / 1021
Version history: 3 change(s)
Referenced in: [show references]