2017-11-15 13:23:49 +00:00
|
|
|
package Classes.css.user;
|
|
|
|
|
|
|
|
import Classes.css.core.Context;
|
|
|
|
import Classes.css.core.Ruleset;
|
|
|
|
import javafx.scene.Node;
|
|
|
|
|
|
|
|
public class Header{
|
|
|
|
|
|
|
|
/* Builds all necessary CSS/layout rules */
|
|
|
|
public Header(Node target) throws Exception{
|
|
|
|
|
|
|
|
/* (1) Set rules */
|
|
|
|
Ruleset.load(target)
|
|
|
|
// .add("top", 0)
|
|
|
|
// .add("left", 0)
|
|
|
|
// .add("right", 0)
|
|
|
|
|
2017-11-15 16:17:45 +00:00
|
|
|
.add("min-height", Context.getInt("header-height"))
|
|
|
|
.add("pref-height", Context.getInt("header-height"))
|
|
|
|
.add("max-height", Context.getInt("header-height"))
|
2017-11-15 13:23:49 +00:00
|
|
|
|
2017-11-15 16:17:45 +00:00
|
|
|
.add("min-width", Context.getInt("screen-width"))
|
|
|
|
.add("pref-width", Context.getInt("screen-width"))
|
|
|
|
.add("max-width", Context.getInt("screen-width"))
|
2017-11-15 13:23:49 +00:00
|
|
|
|
2017-11-15 16:17:45 +00:00
|
|
|
.add("background-color", Context.getString("main-color"))
|
2017-11-15 13:23:49 +00:00
|
|
|
|
|
|
|
.apply();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|