def on_mouse_release(self, event):
        """Choose new color widget as current one if hovered.

        Parameters
        ==========
        event (pygame.event.Event instance)
            event of pygame.MOUSEBUTTONUP type; its 'pos'
            attribute contains the position of the mouse
            when its left button was released, which in
            interpret here as a click (or rather, the end
            of a click).
        """
        ### retrieve the mouse position
        mouse_pos = event.pos

        ### reference the scroll area locally
        scroll_area = self.scroll_area

        ### return earlier if mouse isn't even inside the
        ### scroll area
        if not scroll_area.collidepoint(mouse_pos):
            return

        ### otherwise, check each color widget colliding with
        ### the scroll area, looking for the one hovered by
        ### the mouse (if there is one)

        for widget in self.widgets.get_colliding(scroll_area):

            ### if you find a color widget which collides
            ### with the mouse, make it the current color
            ### widget and break out of the "for loop"

            if widget.rect.collidepoint(mouse_pos):

                ## retrieve its index
                index = self.widgets.index(widget)

                ## define it as the index for the current
                ## color
                self.colors_editor.current_color_index = index

                ## store a reference to the
                ## new current widget (this one)
                self.store_current_widget()

                ## set the color of the new color widget in
                ## the controls so the user can edit the
                ## fields from its actual values, if desired
                self.colors_editor.set_color_on_controls(widget.color)

                break
Choose new color widget as current one if hovered.

        Parameters
        ==========
        event (pygame.event.Event instance)
            event of pygame.MOUSEBUTTONUP type; its 'pos'
            attribute contains the position of the mouse
            when its left button was released, which in
            interpret here as a click (or rather, the end
            of a click).
        
nodezator/colorsman/editor/panel/main.py