Git Product home page Git Product logo

Comments (2)

justinmeiners avatar justinmeiners commented on May 26, 2024

Sorry it's been a while! Do you have any insight in what I should for this one?

from classic-colors.

MagnetarRocket avatar MagnetarRocket commented on May 26, 2024

I think the XPM icon format can take in colors from the background widget, i learned about this quark from looking at CDE backgrounds, an example would be "Conclave.pm".

As for a possible fix, i have a one-color pixmap, but don't know yet of how to insert pixmaps into widgets in motif yet; as for the file, i think it has to be hand-written, which is actualy possible(if cumbersome) with the XPM file format. As for a possible fix, i have hand edited a outputted XPM file to see if i could find a fix of sorts here, if it does not work, edit "background" to "foreground":

/* XPM */
static char *icon_color[] = {
/* columns rows colors chars-per-pixel */
"32 32 1 1",
"  s background c none",
/* pixels */
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                "
};

And if that does not work, a storage hungry solution of multiple single color pixmaps would be needed i'm afraid (to the best of my knowledge here, again i'm also learning how motif ticks with this project on the fly here).
Edit: i think the trick on the colorbox icons would be of obtaining the colored background or foreground of the color buttons. See how Xgrace implements buttons as the buttons never change background color, which would be needed if somebody decided to use a pixmap as a background in X11.

from classic-colors.

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.