First attempt at a QGIS plugin using Plugin Builder. This QGIS plugin allows users to toggle the background colour of the map canvas between different predefined colours. The plugin adds a toolbar button to the QGIS interface, which, when clicked, cycles through a set of predefined background colours for the map canvas.
- Adds a toolbar button to toggle the background colour of the map canvas.
- Allows users to cycle through predefined background colours.
- Will eventually add a way to set and remove specific colours
- The plugin is implemented using the QGIS plugin framework.
- It uses PyQt for GUI elements and interactions.
- The plugin maintains a list of predefined background colours, which users can cycle through using the toolbar button.
- colours are saved and loaded using QSettings for persistence between QGIS sessions.
- The plugin includes methods for adding toolbar buttons, updating button icons, setting canvas colours, and handling user interactions.
- Download a zip of this repo.
- In QGIS, go to Plugins > Manage and Install Plugins... > Install from zip
- Activate the plugin from the Plugins menu.
- A toolbar button labeled "Background Toggler" will appear.
- Clicking the button will cycle through predefined background colours (black, white, grey) for the map canvas.
- QGIS 3.x
- PyQt5
- GNU General Public License version 2 or later