Skip to content

Commit f974089

Browse files
committed
implementing more of the gui comps
1 parent 056d51c commit f974089

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

app/src/processing/app/EditorHeader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ private boolean placeTabs(int left, int right, Graphics2D g) {
410410
if (code.isModified()) {
411411
g.setColor(modifiedColor);
412412
//g.drawLine(tab.left + NOTCH, top, tab.right - NOTCH, top);
413-
g.drawLine(tab.left, TAB_TOP, tab.right, TAB_TOP);
413+
g.drawLine(tab.left + (i == 0 ? CURVE_RADIUS : 0), TAB_TOP, tab.right, TAB_TOP);
414414
}
415415
}
416416

build/shared/lib/theme.txt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ status.font = processing.sans,plain,14
1010

1111
# TABS
1212
# Settings for the tab area at the top.
13-
header.text.font = processing.sans,bold,13
13+
header.text.font = processing.sans,bold,14
1414
header.text.selected.color = #000000
1515
header.text.unselected.color = #ffffff
1616
#header.tab.arrow.color = #000000
@@ -71,10 +71,10 @@ mode.background.color = #3D5362
7171

7272
# LINE STATUS
7373
# The editor line number status bar at the bottom of the screen
74-
linestatus.color = #ffffff
75-
linestatus.bgcolor = #29333d
76-
linestatus.font = processing.sans,plain,13
77-
linestatus.height = 20
74+
#linestatus.color = #ffffff
75+
#linestatus.bgcolor = #29333d
76+
#linestatus.font = processing.sans,plain,13
77+
#linestatus.height = 20
7878

7979

8080
# EDITOR - DETAILS
@@ -87,7 +87,8 @@ editor.gradient.top = #122535
8787
editor.gradient.bottom = #020408
8888

8989
# highlight for the current line
90-
editor.linehighlight.color=#e2e2e2
90+
#editor.linehighlight.color=#e2e2e2
91+
editor.linehighlight.color=#ebfffd
9192
# highlight for the current line
9293
editor.linehighlight=true
9394

@@ -106,4 +107,7 @@ editor.brackethighlight = true
106107
editor.brackethighlight.color = #006699
107108

108109
editor.gutter.text.font = processing.mono,plain,11
109-
editor.gutter.text.color = #657d87
110+
#editor.gutter.text.color = #657d87
111+
#editor.gutter.text.color = #587478
112+
editor.gutter.text.color = #bbd6d5
113+
editor.gutter.linehighlight.color=#587478

java/src/processing/mode/java/pdex/JavaTextAreaPainter.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public class JavaTextAreaPainter extends TextAreaPainter
7575

7676
protected Font gutterTextFont;
7777
protected Color gutterTextColor;
78+
protected Color gutterLineHighlightColor;
7879
// protected Color gutterTempColor;
7980

8081
public static class ErrorLineCoord {
@@ -242,9 +243,13 @@ protected void paintLine(Graphics gfx, int line, int x,
242243
* @param x horizontal position
243244
*/
244245
protected void paintLeftGutter(Graphics gfx, int line, int x) {
245-
gfx.setColor(getTextArea().gutterBgColor);
246246
// gfx.setColor(Color.ORANGE);
247247
int y = textArea.lineToY(line) + fm.getLeading() + fm.getMaxDescent();
248+
if (line == textArea.getSelectionStopLine()) {
249+
gfx.setColor(gutterLineHighlightColor);
250+
} else {
251+
gfx.setColor(getTextArea().gutterBgColor);
252+
}
248253
gfx.fillRect(0, y, Editor.LEFT_GUTTER, fm.getHeight());
249254

250255
String text = getTextArea().getGutterText(line);
@@ -535,6 +540,7 @@ public void setECSandTheme(ErrorCheckerService ecs, JavaMode mode) {
535540

536541
gutterTextFont = mode.getFont("editor.gutter.text.font");
537542
gutterTextColor = mode.getColor("editor.gutter.text.color");
543+
gutterLineHighlightColor = mode.getColor("editor.gutter.linehighlight.color");
538544
}
539545

540546
@Override

0 commit comments

Comments
 (0)