33 lines
791 B
Java
33 lines
791 B
Java
package Classes.css.user;
|
|
|
|
import Classes.css.core.Context;
|
|
import Classes.css.core.Ruleset;
|
|
import javafx.scene.Node;
|
|
|
|
public class HeaderStyleSheet{
|
|
|
|
/* Builds all necessary CSS/layout rules */
|
|
public HeaderStyleSheet(Node target) throws Exception{
|
|
|
|
/* (1) Set rules */
|
|
Ruleset.load(target)
|
|
// .add("top", 0)
|
|
// .add("left", 0)
|
|
// .add("right", 0)
|
|
|
|
.add("min-height", Context.getInt("header-height"))
|
|
.add("max-height", Context.getInt("header-height"))
|
|
|
|
.add("min-width", Context.getInt("screen-width"))
|
|
.add("max-width", Context.getInt("screen-width"))
|
|
|
|
.add("pref-height", Context.getInt("header-height"))
|
|
.add("pref-width", Context.getInt("screen-width"))
|
|
|
|
.add("background-color", Context.getString("main-color"))
|
|
|
|
.apply();
|
|
}
|
|
|
|
}
|