Comments (9)
@markiewb, @ZMichaelChow let me try.
from nb-darcula.
That would be cool! Thanks!
from nb-darcula.
Well; after some digging in NetBeans sources I can see that a hardcoded color is used:
package org.netbeans.swing.tabcontrol.plaf;
abstract class AbstractWinViewTabDisplayerUI {
@Override
protected void paintTabContent(Graphics g, int index, String text, int x,
int y, int width, int height) {
...
if( isUseStretchingTabs() ) {
ColorUtil.paintVistaTabDragTexture(getDisplayer(), g, x + BUMP_X_PAD, y
+ BUMP_Y_PAD_UPPER, height - (BUMP_Y_PAD_UPPER
+ BUMP_Y_PAD_BOTTOM));
}
...
}
}
final class ColorUtil {
...
/**
* Draws drag texture of the tab in specified bounds.
*/
public static void paintVistaTabDragTexture(Component control, Graphics g,
int x, int y, int height) {
if (VISTA_DRAG_IMAGE == null) {
VISTA_DRAG_IMAGE = initVistaDragTextureImage();
}
int count = height / 4;
int ypos = y;
606: g.setColor( Color.WHITE ); // <<<<<--- How to hack this ?
for (int i = 0; i < count; i++) {
VISTA_DRAG_IMAGE.paintIcon(control, g, x, ypos);
g.drawLine( x+1, ypos+2, x+2, ypos+2 );
g.drawLine( x+2, ypos+1, x+2, ypos+1 );
ypos += 4;
}
}
...
}
So if we keep using stretched tabs I dont see a way of changing the hardcoded white color in ColorUtil:606. But If we drop using stretched tabs (which is default since NB 8.0 I think) dotted icon not painted:
Personally I think stretched tabs are better and current icon is not that bad. What say you ?
from nb-darcula.
IMO the non-streched variant looks OK for me.
Provide an option and let the user decide. It would be a waste of your invested free-time, if there is no output.
from nb-darcula.
Non-streched variant is better for me because there are not minimaze button on tab. I have problem with order of close, minimaze buttons. I think order minimaze before close makes more sense
from nb-darcula.
Non-streched tabs is better for me, too. I always make the tabs non-streched :)
I agree with @markiewb. If possible(and convenient), provide an option in "Tools->Options" and let the user decide.
from nb-darcula.
OK! now user can opt to use stretched tabs or not. Tabs are not stretched by default:
Thanks everybody for opinions.
from nb-darcula.
Thank you too!
from nb-darcula.
Well done! Thank you so much~
from nb-darcula.
Related Issues (20)
- How to add to a non-maven Netbeans RCP application
- Please create tags/releases
- Color contrast of Java icon in Options menu
- Replace Icons with IntelliJ Darcula Icons
- Markdow files are not so readable
- jsp:include code completion popup hard to read
- New Widget selection Glow under Java 11
- Issues about syntax coloring & window's color
- NetBeans 9.0 compatibility HOT 1
- Same background color for files from the same project are too similar
- HiDPI icons in tabcontrol and openide.awt modules HOT 1
- What about to Donate the SourceCode to Apache NetBeans HOT 17
- Any reason to use the AlexFalappa JAR? HOT 4
- Warnings in NB 10.0 using openjdk 11 HOT 3
- Inconsistence between code completition font color HOT 9
- NBM on Maven Central? HOT 2
- GUI Builder Colors HOT 2
- Manual install option/github releases HOT 5
- unreadable numbers in performance graph
- darcula HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nb-darcula.