From 2c73f741129bd7b8430347342a37f0c90e85e726 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 27 May 2024 00:04:47 +0300 Subject: [PATCH] Use bitmap bundles in 3D viewer toolbar. --- 3d-viewer/3d_viewer/3d_toolbar.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/3d-viewer/3d_viewer/3d_toolbar.cpp b/3d-viewer/3d_viewer/3d_toolbar.cpp index 6fd55ffd41..b72c3bdd66 100644 --- a/3d-viewer/3d_viewer/3d_toolbar.cpp +++ b/3d-viewer/3d_viewer/3d_toolbar.cpp @@ -5,7 +5,7 @@ * Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr * Copyright (C) 2013 Wayne Stambaugh * Copyright (C) 2023 CERN - * Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 1992-2024 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -54,16 +54,17 @@ void EDA_3D_VIEWER_FRAME::ReCreateMainToolbar() // Set up toolbar m_mainToolBar->AddTool( ID_RELOAD3D_BOARD, wxEmptyString, - KiScaledBitmap( BITMAPS::import3d, this ), _( "Reload board" ) ); + KiBitmapBundle( BITMAPS::import3d ), + _( "Reload board" ) ); m_mainToolBar->AddScaledSeparator( this ); m_mainToolBar->AddTool( ID_TOOL_SCREENCOPY_TOCLIBBOARD, wxEmptyString, - KiScaledBitmap( BITMAPS::copy, this ), + KiBitmapBundle( BITMAPS::copy ), _( "Copy 3D image to clipboard" ) ); m_mainToolBar->AddScaledSeparator( this ); m_mainToolBar->AddTool( ID_RENDER_CURRENT_VIEW, wxEmptyString, - KiScaledBitmap( BITMAPS::render_mode, this ), + KiBitmapBundle( BITMAPS::render_mode ), _( "Render current view using Raytracing" ), wxITEM_CHECK ); m_mainToolBar->AddScaledSeparator( this );