KiCad PCB EDA Suite
action_toolbar.cpp File Reference
#include <algorithm>
#include <advanced_config.h>
#include <bitmaps.h>
#include <bitmap_store.h>
#include <eda_draw_frame.h>
#include <functional>
#include <kiplatform/ui.h>
#include <math/util.h>
#include <memory>
#include <pgm_base.h>
#include <settings/common_settings.h>
#include <tool/action_toolbar.h>
#include <tool/actions.h>
#include <tool/tool_action.h>
#include <tool/tool_event.h>
#include <tool/tool_interactive.h>
#include <tool/tool_manager.h>
#include <widgets/bitmap_button.h>
#include <widgets/wx_aui_art_providers.h>
#include <wx/popupwin.h>
#include <wx/renderer.h>
#include <wx/sizer.h>
#include <wx/dcclient.h>
#include <wx/settings.h>

Go to the source code of this file.

Macros

#define PALETTE_BORDER   4
 
#define BUTTON_BORDER   1
 
#define PALETTE_OPEN_DELAY   500
 

Functions

wxBitmap MakeDisabledBitmap (const wxBitmap &aSource)
 

Macro Definition Documentation

◆ BUTTON_BORDER

#define BUTTON_BORDER   1

Definition at line 93 of file action_toolbar.cpp.

◆ PALETTE_BORDER

#define PALETTE_BORDER   4

Definition at line 92 of file action_toolbar.cpp.

◆ PALETTE_OPEN_DELAY

#define PALETTE_OPEN_DELAY   500

Definition at line 518 of file action_toolbar.cpp.

Function Documentation

◆ MakeDisabledBitmap()

wxBitmap MakeDisabledBitmap ( const wxBitmap &  aSource)

Definition at line 51 of file action_toolbar.cpp.

52 {
53  return aSource.ConvertToDisabled( KIPLATFORM::UI::IsDarkTheme() ? 70 : 255 );
54 }
bool IsDarkTheme()
Determine if the desktop interface is currently using a dark theme or a light theme.
Definition: gtk/ui.cpp:31

References KIPLATFORM::UI::IsDarkTheme().

Referenced by ACTION_TOOLBAR::Add(), ACTION_TOOLBAR_PALETTE::AddAction(), ACTION_TOOLBAR::AddButton(), ACTION_TOOLBAR::AddGroup(), ACTION_TOOLBAR::doSelectAction(), ACTION_TOOLBAR::RefreshBitmaps(), and ACTION_TOOLBAR::SetToolBitmap().