Add BLender logo in the corner
Still need to make it DPI and HiDPI and such aware.
This commit is contained in:
@@ -180,6 +180,12 @@ def benchmark_draw_post_pixel(arg1, arg2):
|
||||
|
||||
draw_rect(bottom_x, bottom_y, bottom_w, bottom_h, bottom_color)
|
||||
|
||||
# Logo
|
||||
# TODO(sergey): Make it DPI aware.
|
||||
logo_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
logo_filepath = os.path.join(logo_dir, 'blender.png')
|
||||
draw_image(logo_filepath, 12, (bottom_h - 24) / 2, 85, 24)
|
||||
|
||||
|
||||
handle_draw = bpy.types.SpaceBenchmark.draw_handler_add(
|
||||
benchmark_draw_post_pixel, (None, None), 'WINDOW', 'POST_PIXEL')
|
||||
|
BIN
benchmark/space/blender.png
Normal file
BIN
benchmark/space/blender.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Reference in New Issue
Block a user