Comments (5)
Ah yes i hard coded these (i knew it would be trouble). I'll take a look at removing 'em and let the system default be used.
from tkd.
Hmm... looking at the source i removed all the hard coded colors a while ago, so that's not the issue. It looks like this is part of the default theme in Tcl/Tk.
https://github.com/nomad-software/tcltk/blob/master/dist/library/ttk/defaults.tcl#L59
https://github.com/nomad-software/tcltk/blob/master/dist/library/ttk/defaults.tcl#L94
Someone with the same issue:
http://stackoverflow.com/questions/17635905/ttk-entry-background-colour
I think this is a short-coming of Tcl/Tk in general.
from tkd.
Interesting, although it looks like it may be just a series of bugs/oversights in Tk's themes. If I add -fieldbackground SystemWindow
to this line:
https://github.com/nomad-software/tcltk/blob/master/dist/library/ttk/winTheme.tcl#L30
Then that particular field's background is displayed correctly (although the keyboard cursor for it becomes invisible...arggh). I have no idea how many other themes may be affected or how to properly test them (I'm completely new to both tcl and tk).
FWIW, I'm doing this on Win7 with Aero disabled.
from tkd.
I'll have another fiddle.
from tkd.
See commit: c4e508e for the fix to this problem. If you set to use another theme in your program (using setTheme(...)
) then this problem will occur again. To avoid this you could always create your own theme and use that.
from tkd.
Related Issues (20)
- Build of example fails on Mac OSX 10.11 HOT 1
- Text bind (<<Modified>>) only happens once HOT 3
- Example fails to run on Windows but build fine HOT 1
- Add note for linker flags in windows needed to prevent console window. HOT 2
- commandCallbackHandler catches Throwable making unrecoverable Errors impossible HOT 5
- lib found but undefined references HOT 5
- start TK in D Programming ! HOT 4
- Feature Request: add OpenGL capabilites HOT 4
- Changing Widget Background Color HOT 3
- MDI Support HOT 3
- Color methods have been added to widgets that can't use them
- does canvas use the gpu to draw? HOT 1
- Error: module `tkdapplication` is in file 'tkd\tkdapplication.d' which cannot be read HOT 4
- Windows requires Microsoft Visual C++ Redistributable HOT 2
- How to install this in Windows ? HOT 3
- Segmentaiton Fault after Choosing a File via OpenFileDialog HOT 2
- Rebinding default tk keys does not work HOT 9
- How can I get currently selected tab in NoteBook widget? HOT 1
- Has this been abandoned? HOT 3
- Simple Q: is the final app using this lib completely native? HOT 3
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 tkd.