Auteur Topic: Kleurdefinities  (gelezen 195 keer)

0 leden (en 1 gast) bekijken dit topic.

Online Faramir

  • Gevorderd Lid
  • ***
  • Berichten: 664
Kleurdefinities
« Gepost op: 23 oktober 2026, 12:52:28 »
Voor een programma wat ik aan het bouwen ben heb ik de kleurdefinities nodig die in PDW zijn ingebakken.
Ik bedoel dan echt de RGB waarden van de originele kleuren dus zonder de display enhancements.
Als ik die zo kunnen krijgen scheelt me dat een berg werk! Kan iemand me hieraan helpen?

Offline dajero

  • Beginnend Lid
  • **
  • Berichten: 94
Re: Kleurdefinities
« Reactie #1 Gepost op: 23 oktober 2026, 13:06:15 »
Ik kan dit terugvinden in pdw.cpp:

   // COLORS.
Profile.color_background = RGB(rgbColor[BLACK][0],  rgbColor[BLACK][1],  rgbColor[BLACK][2]);
Profile.color_address = RGB(rgbColor[WHITE][0],  rgbColor[WHITE][1],  rgbColor[WHITE][2]);
Profile.color_modetypebit = RGB(rgbColor[RED][0],    rgbColor[RED][1],    rgbColor[RED][2]);
Profile.color_timestamp = RGB(rgbColor[LTBLUE][0], rgbColor[LTBLUE][1], rgbColor[LTBLUE][2]);
Profile.color_numeric = RGB(rgbColor[RED][0],    rgbColor[RED][1],    rgbColor[RED][2]);
Profile.color_message = RGB(rgbColor[LTCYAN][0], rgbColor[LTCYAN][1], rgbColor[LTCYAN][2]);
Profile.color_misc = RGB(rgbColor[BROWN][0],  rgbColor[BROWN][1],  rgbColor[BROWN][2]);
Profile.color_biterrors = RGB(rgbColor[LTGRAY][0], rgbColor[LTGRAY][1], rgbColor[LTGRAY][2]);
Profile.color_filtermatch = RGB(rgbColor[LTGREEN][0],rgbColor[LTGREEN][1],rgbColor[LTGREEN][2]);
Profile.color_instructions = RGB(rgbColor[LTCYAN][0], rgbColor[LTCYAN][1], rgbColor[LTCYAN][2]);
Profile.color_ac_message_nr = RGB(rgbColor[WHITE][0],  rgbColor[WHITE][1],  rgbColor[WHITE][2]);
Profile.color_ac_dbi = RGB(rgbColor[RED][0],    rgbColor[RED][1],    rgbColor[RED][2]);
Profile.color_mb_sender = RGB(rgbColor[RED][0],    rgbColor[RED][1],    rgbColor[RED][2]);

// Filter label colors
Profile.color_filterlabel[0] = RGB(64, 128, 255); // FIX [FilterBlueContrast]: was pure blue (0,0,255), poorly readable on black; lift the Default slot to a readable azure
Profile.color_filterlabel[1] = RGB(rgbColor[YELLOW][0], rgbColor[YELLOW][1], rgbColor[YELLOW][2]);
Profile.color_filterlabel[2] = RGB(rgbColor[RED][0],    rgbColor[RED][1],    rgbColor[RED][2]);
Profile.color_filterlabel[3] = RGB(0xFF, 0xAA, 0x00);      /* orange */
Profile.color_filterlabel[4] = RGB(rgbColor[LTBLUE][0], rgbColor[LTBLUE][1], rgbColor[LTBLUE][2]);
Profile.color_filterlabel[5] = RGB(rgbColor[CYAN][0],   rgbColor[CYAN][1],   rgbColor[CYAN][2]);
Profile.color_filterlabel[6] = RGB(rgbColor[WHITE][0],  rgbColor[WHITE][1],  rgbColor[WHITE][2]);
Profile.color_filterlabel[7] = RGB(rgbColor[LTGREEN][0],rgbColor[LTGREEN][1],rgbColor[LTGREEN][2]);
Profile.color_filterlabel[8] = RGB(rgbColor[LTGRAY][0], rgbColor[LTGRAY][1], rgbColor[LTGRAY][2]);

Profile.color_filterlabel[9] = RGB(rgbColor[BROWN][0],  rgbColor[BROWN][1],  rgbColor[BROWN][2]);
Profile.color_filterlabel[10] = RGB(rgbColor[LTCYAN][0], rgbColor[LTCYAN][1], rgbColor[LTCYAN][2]);
Profile.color_filterlabel[11] = RGB(0x00, 0x33, 0x99);      /* navy blue */
Profile.color_filterlabel[12] = RGB(0xFF, 0x00, 0xFF);      /* magenta */
Profile.color_filterlabel[13] = RGB(0x33, 0xCC, 0x99);      /* sea green */
Profile.color_filterlabel[14] = RGB(0xFF, 0x99, 0xCC);  /* pink */
Profile.color_filterlabel[15] = RGB(0x99, 0xFF, 0xFF);      /* ice blue */
Profile.color_filterlabel[16] = RGB(0x99, 0xFF, 0xCC);      /* turquoise */

En dit in gfx.cpp:

// These are used with the color dialog box, for pane1/pane2 text colors
// and for system pen/brush creation.
DWORD rgbColor[17][3] = {{ 0,   0,   0  }, // BLACK
                         { 0,   0,   128}, // BLUE
                         { 0,   128, 0  }, // GREEN
                         { 0,   128, 128}, // CYAN
                         { 255, 0,   0  }, // RED
                         { 64,  0,   128}, // MAGENTA
                         { 128, 128, 64 }, // BROWN
                         { 192, 192, 192}, // LIGHTGRAY
                         { 138, 138, 138}, // DARKGRAY
                         { 0,   0,   255}, // LIGHTBLUE
                         { 0,   255, 0  }, // LIGHTGREEN
                         { 0,   255, 255}, // LIGHTCYAN
                         { 255, 64,  64 }, // LIGHTRED
                         { 255, 0,   255}, // LIGHTMAGENTA
                         { 255, 255, 0  }, // YELLOW
                         { 255, 255, 255}, // WHITE
                         { 255, 165, 0 }}; // ORANGE

Online Faramir

  • Gevorderd Lid
  • ***
  • Berichten: 664
Re: Kleurdefinities
« Reactie #2 Gepost op: 23 oktober 2026, 13:12:59 »
Geweldig!! Dank je wel.