Skip to content

Commit

Permalink
Darker Tree Buttons on dark theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fexcraft committed Feb 20, 2020
1 parent 60cdb82 commit b9a9046
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/net/fexcraft/app/fmt/FMTB.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class FMTB {

public static final String deftitle = "[FPS:%s] Fexcraft Modelling Toolbox - %s";
public static final String deftitle0 = "Fexcraft Modelling Toolbox - %s";
public static final String version = "2.0.0";
public static final String version = "2.0.1";
public static final String CLID = "587016218196574209";
//
public static GGR ggr;
Expand Down Expand Up @@ -535,7 +535,7 @@ public void run(){
String welcome = Translator.translate("dialog.welcome.title");
String cversion = Translator.format("dialog.welcome.version", version);
String new_title = Translator.format("dialog.welcome.title_new", newver, version);
String new_version = Translator.format("dialog.welcome.version_new", "%s >> %s", newver, version);
String new_version = Translator.format("dialog.welcome.version_new", newver, version);
//
Dialog dialog = new Dialog(bool ? welcome : new_title, 300, 100);
Label label = new Label(bool ? cversion : new_version, 10, 10, 200, 20);
Expand Down
2 changes: 1 addition & 1 deletion src/net/fexcraft/app/fmt/ui/UserInterfaceUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class UserInterfaceUtils {
};
public static final Runnable SELECT_TEXTURE = () -> {
FileSelector.select(translate("toolbar.textures.select.dialog"), "./", FileSelector.TYPE_PNG, false, file -> {
String name = file.getPath(); TextureManager.loadTextureFromFile(name, file); FMTB.MODEL.setTexture(name);
if(file == null) return; String name = file.getPath(); TextureManager.loadTextureFromFile(name, file); FMTB.MODEL.setTexture(name);
//
/*Texture tex = TextureManager.getTexture(name, true); if(tex == null) return;
if(tex.getWidth() > FMTB.MODEL.textureX) FMTB.MODEL.textureX = tex.getWidth();
Expand Down
3 changes: 3 additions & 0 deletions src/net/fexcraft/app/fmt/ui/tree/SubTreeGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.liquidengine.legui.event.MouseClickEvent;
import org.liquidengine.legui.input.Mouse.MouseButton;
import org.liquidengine.legui.style.Style.DisplayType;
import org.liquidengine.legui.style.color.ColorConstants;

import net.fexcraft.app.fmt.FMTB;
import net.fexcraft.app.fmt.ui.DialogBox;
Expand All @@ -16,6 +17,7 @@
import net.fexcraft.app.fmt.ui.editor.Editors;
import net.fexcraft.app.fmt.utils.Animator.Animation;
import net.fexcraft.app.fmt.utils.GGR;
import net.fexcraft.app.fmt.utils.Settings;
import net.fexcraft.app.fmt.wrappers.GroupCompound;
import net.fexcraft.app.fmt.wrappers.PolygonWrapper;
import net.fexcraft.app.fmt.wrappers.TurboList;
Expand All @@ -35,6 +37,7 @@ public SubTreeGroup(TreeBase base){
label.getStyle().setFont("roboto-bold");
label.getStyle().setPadding(0, 0, 0, 5);
label.getStyle().setBorderRadius(0);
if(Settings.darktheme()) label.getStyle().setTextColor(ColorConstants.darkGray());
}

public SubTreeGroup(TreeBase base, PolygonWrapper wrapper){
Expand Down
3 changes: 3 additions & 0 deletions src/net/fexcraft/app/fmt/ui/tree/TreeGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.liquidengine.legui.component.Panel;
import org.liquidengine.legui.event.MouseClickEvent;
import org.liquidengine.legui.input.Mouse.MouseButton;
import org.liquidengine.legui.style.color.ColorConstants;

import net.fexcraft.app.fmt.FMTB;
import net.fexcraft.app.fmt.porters.PorterManager;
Expand All @@ -18,6 +19,7 @@
import net.fexcraft.app.fmt.ui.editor.PreviewEditor;
import net.fexcraft.app.fmt.utils.GGR;
import net.fexcraft.app.fmt.utils.HelperCollector;
import net.fexcraft.app.fmt.utils.Settings;
import net.fexcraft.app.fmt.utils.Settings.Setting;
import net.fexcraft.app.fmt.wrappers.GroupCompound;
import net.fexcraft.app.fmt.wrappers.TurboList;
Expand All @@ -39,6 +41,7 @@ public TreeGroup(TreeBase base){
label.getStyle().setFont("roboto-bold");
label.getStyle().setPadding(0, 0, 0, 5);
label.getStyle().setBorderRadius(0);
if(Settings.darktheme()) label.getStyle().setTextColor(ColorConstants.darkGray());
}

public TreeGroup(TreeBase base, TurboList group, boolean flag){
Expand Down

0 comments on commit b9a9046

Please sign in to comment.