ui rework in progress

This commit is contained in:
Ben Fry
2015-03-31 20:10:07 -04:00
parent 25690384b9
commit 986d7615dd
8 changed files with 36 additions and 28 deletions
+4 -2
View File
@@ -51,8 +51,10 @@ public abstract class Editor extends JFrame implements RunnerListener {
protected EditorState state;
protected Mode mode;
static final int LEFT_GUTTER = 60;
static final int RIGHT_GUTTER = 26;
static public final int LEFT_GUTTER = 44;
static public final int RIGHT_GUTTER = 20;
static public final int GUTTER_MARGIN = 3;
// Otherwise, if the window is resized with the message label
// set to blank, its preferredSize() will be fuckered
+1 -1
View File
@@ -28,7 +28,7 @@ import javax.swing.*;
abstract public class EditorButton extends JComponent
implements MouseListener, MouseMotionListener, ActionListener {
static public final int DIM = 46;
static public final int DIM = 35;
/** Button's description. */
protected String title;
+1 -1
View File
@@ -37,7 +37,7 @@ import javax.swing.*;
*/
public class EditorHeader extends JComponent {
// height of this tab bar
static final int HIGH = 36;
static final int HIGH = 30;
// standard UI sizing (OS-specific, but generally consistent)
// static final int SCROLLBAR_WIDTH = 16;
// amount of space on the left edge before the tabs start
+4 -4
View File
@@ -38,11 +38,11 @@ import javax.swing.JPopupMenu;
abstract public class EditorToolbar extends JPanel {
// haven't decided how to handle this/how to make public/consistency
// for components/does it live in theme.txt
static final int HIGH = 80;
// gap between buttons
static final int GAP = 8;
static final int HIGH = 53;
// horizontal gap between buttons
static final int GAP = 9;
// gap from the run button to the sketch label
static final int LABEL_GAP = 18;
static final int LABEL_GAP = GAP;
protected Editor editor;
protected Base base;