'Get the values of the last edited color scheme to be used in an instant
preview in the preview editor, without using `apply`.'

def get_edited_color_scheme(self):

    color_scheme = {}
    scheme_name = self.last_used_scheme
    for key in self.widgets[scheme_name]:
        items = self.widgets[scheme_name][key]
        if (len(items) == 1):
            value = items[0].text()
        else:
            value = (items[0].text(), items[1].isChecked(), items[2].isChecked())
        color_scheme[key] = value
    return color_scheme
