M Marc Van Cauwenberghe Member Licensed User Longtime User Mar 23, 2019 #1 Hi, Trying my hand at making my first java program. A lot of controls (views ) are kinda 3D. Is there a way to get them flat? Best regards, Marc
Hi, Trying my hand at making my first java program. A lot of controls (views ) are kinda 3D. Is there a way to get them flat? Best regards, Marc
Daestrum Expert Licensed User Longtime User Mar 23, 2019 #2 An example (but looks horrid) not sure how many controls it contains. Code: Copy ' download jmetro-5.2.jar and save in additional libraries folder ' include #AdditionalJar: jmetro-5.2.jar ... Dim theme As JavaObject theme.InitializeNewInstance("jfxtras.styles.jmetro8.JMetro",Array("LIGHT"))' or DARK theme.RunMethod("applyTheme",Array(MainForm.RootPane)) ' apply to rootpane ie everything ... Upvote 0
An example (but looks horrid) not sure how many controls it contains. Code: Copy ' download jmetro-5.2.jar and save in additional libraries folder ' include #AdditionalJar: jmetro-5.2.jar ... Dim theme As JavaObject theme.InitializeNewInstance("jfxtras.styles.jmetro8.JMetro",Array("LIGHT"))' or DARK theme.RunMethod("applyTheme",Array(MainForm.RootPane)) ' apply to rootpane ie everything ...
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2019 #3 Source: https://stackoverflow.com/questions/21451386/titled-pane-css-settings This will help you get started: Create a css file named style.css with: Code: Copy .titled-pane > .title { -fx-background-color: -fx-box-border, -fx-inner-border, white; -fx-background-insets: 0, 1, 2; -fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0; -fx-padding: 0.166667em 0.833333em 0.25em 0.833333em; /* 2 10 3 10 */ } Set it with: Code: Copy MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "style.css")) Upvote 0
Source: https://stackoverflow.com/questions/21451386/titled-pane-css-settings This will help you get started: Create a css file named style.css with: Code: Copy .titled-pane > .title { -fx-background-color: -fx-box-border, -fx-inner-border, white; -fx-background-insets: 0, 1, 2; -fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0; -fx-padding: 0.166667em 0.833333em 0.25em 0.833333em; /* 2 10 3 10 */ } Set it with: Code: Copy MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "style.css"))
M Marc Van Cauwenberghe Member Licensed User Longtime User Mar 24, 2019 #4 Thank you both for your answers. Best regard, Marc Upvote 0