Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hack Palette Editor name
#2
(08-09-2023, 10:02 PM)pixelmixer Wrote: Hi!,

Maybe the wrong place to ask, maybe not.
Does anybody know how to hack out the name that's displayed above a palette in the palette editor?
I'm trying to get a floating color swatch as small as possible, to tap and set the foreground color.

gimppaletteeditor.c looks promising, and you can hide some widgets, I can't identify the name element though.

It's created in the GimpDataEditor class. You don't want to delete it there though. Search for gtk_widget_show (data_editor->view); and add this line below it:

Code:
  gtk_widget_set_visible (data_editor->name_entry, FALSE);

Hope it helps! You'll probably want to make a patch out of this so you can reapply it as needed.
Reply


Messages In This Thread
Hack Palette Editor name - by pixelmixer - 08-09-2023, 10:02 PM
RE: Hack Palette Editor name - by CmykStudent - 08-10-2023, 06:33 AM
RE: Hack Palette Editor name - by Ofnuts - 08-10-2023, 07:26 AM
RE: Hack Palette Editor name - by pixelmixer - 08-10-2023, 11:33 AM

Forum Jump: