Skip to content

Commit

Permalink
Add color to the color hex log
Browse files Browse the repository at this point in the history
  • Loading branch information
alexemanuelol committed Oct 10, 2021
1 parent 1e8922b commit 89c749f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rustdavinci/lib/rustDaVinci.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,9 +1012,11 @@ def start_painting(self):
self.skip_current_color = False
# Print current color to the log
color_hex = rgb_to_hex(self.updated_palette[color])
self.parent.ui.log_TextEdit.append( "(" + str((counter+1)) + "/" +
str((len(self.img_colors))) +
") Current color: " + str(color_hex))
self.parent.ui.log_TextEdit.append(
"(" + str((counter+1)) + "/" + str((len(self.img_colors))) + ") Current color: " +
"<span style=\" font-size:8pt; font-weight:600; color:" + str(color_hex) + ";\" >█" +
str(color_hex) + "█</span>")

QApplication.processEvents()

# Choose painting controls
Expand Down

0 comments on commit 89c749f

Please sign in to comment.