Giter Club home page Giter Club logo

Comments (5)

nomad-software avatar nomad-software commented on June 14, 2024

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.

nomad-software avatar nomad-software commented on June 14, 2024

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.

Abscissa avatar Abscissa commented on June 14, 2024

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.

nomad-software avatar nomad-software commented on June 14, 2024

I'll have another fiddle.

from tkd.

nomad-software avatar nomad-software commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.