app/utilities/utilities.py
def colors_dict(theme, file) -> dict:
    """Based on selected by user theme & on file on which he actually is,
    returns dictionary containing object names as keys and their colors as values.
    Used for adjusting page theme (colors)."""

    if theme == 'Default':
        colors_list = [
            'bisque', 'black', 'white',
            'black', 'bisque', 'chocolate',
            'seaborn-darkgrid'
        ] if file == 'SEARCH_PAGE' else [
            'bisque', 'black', 'white',
            'black', 'chocolate', 'bisque',
            'seaborn-darkgrid']

    elif theme == 'Dracula':
        colors_list = [
            'black', 'white', 'black',
            'white', 'black', 'black',
            'Solarize_Light2'
        ] if file == 'SEARCH_PAGE' else [
            'black', 'white', 'black',
            'white', 'black', 'black',
            'Solarize_Light2']

    elif theme == 'Navy':
        colors_list = [
            'midnightblue', 'yellow', 'darkslategray',
            'yellow', 'midnightblue', 'darkslategray',
            'dark_background'
        ] if file == 'SEARCH_PAGE' else [
            'midnightblue', 'yellow', 'darkslategray',
            'yellow', 'darkslategray', 'midnightblue',
            'dark_background']

    elif theme == 'Dark grey':
        colors_list = [
            'darkslategray', 'deepskyblue', 'bisque4',
            'lawn green', 'darkslategray', 'darkolivegreen',
            'grayscale'
        ] if file == 'SEARCH_PAGE' else [
            'darkslategray', 'deepskyblue', 'bisque4',
            'lawn green', 'darkolivegreen', 'darkslategray',
            'grayscale']


    objects_parts = [
        'lbl_bg_color', 'lbl_fg_color',
        'entry_bg_color', 'entry_fg_color',
        'right_frame', 'left_frame',
        'graph',
    ]

    return {
        obj_part: color for obj_part, color in zip(objects_parts, colors_list)
    }
Based on selected by user theme & on file on which he actually is,
    returns dictionary containing object names as keys and their colors as values.
    Used for adjusting page theme (colors).
Based on selected by user theme & on file on which he actually is,
returns dictionary containing object names as keys and their colors as values.
Used for adjusting page theme (colors).
Based on selected by user theme & on file on which he actually is returns dictionary containing object names as keys and their colors as values . Used for adjusting page theme ( colors ) .
def colors_dict(theme, file) -> dict:
    if theme == 'Default':
        colors_list = [
            'bisque', 'black', 'white',
            'black', 'bisque', 'chocolate',
            'seaborn-darkgrid'
        ] if file == 'SEARCH_PAGE' else [
            'bisque', 'black', 'white',
            'black', 'chocolate', 'bisque',
            'seaborn-darkgrid']
    elif theme == 'Dracula':
        colors_list = [
            'black', 'white', 'black',
            'white', 'black', 'black',
            'Solarize_Light2'
        ] if file == 'SEARCH_PAGE' else [
            'black', 'white', 'black',
            'white', 'black', 'black',
            'Solarize_Light2']
    elif theme == 'Navy':
        colors_list = [
            'midnightblue', 'yellow', 'darkslategray',
            'yellow', 'midnightblue', 'darkslategray',
            'dark_background'
        ] if file == 'SEARCH_PAGE' else [
            'midnightblue', 'yellow', 'darkslategray',
            'yellow', 'darkslategray', 'midnightblue',
            'dark_background']
    elif theme == 'Dark grey':
        colors_list = [
            'darkslategray', 'deepskyblue', 'bisque4',
            'lawn green', 'darkslategray', 'darkolivegreen',
            'grayscale'
        ] if file == 'SEARCH_PAGE' else [
            'darkslategray', 'deepskyblue', 'bisque4',
            'lawn green', 'darkolivegreen', 'darkslategray',
            'grayscale']
    objects_parts = [
        'lbl_bg_color', 'lbl_fg_color',
        'entry_bg_color', 'entry_fg_color',
        'right_frame', 'left_frame',
        'graph',
    ]
    return {
        obj_part: color for obj_part, color in zip(objects_parts, colors_list)
    }
def colors_dict ( theme , file ) -> dict : if theme == 'Default' : colors_list = [ 'bisque' , 'black' , 'white' , 'black' , 'bisque' , 'chocolate' , 'seaborn-darkgrid' ] if file == 'SEARCH_PAGE' else [ 'bisque' , 'black' , 'white' , 'black' , 'chocolate' , 'bisque' , 'seaborn-darkgrid' ] elif theme == 'Dracula' : colors_list = [ 'black' , 'white' , 'black' , 'white' , 'black' , 'black' , 'Solarize_Light2' ] if file == 'SEARCH_PAGE' else [ 'black' , 'white' , 'black' , 'white' , 'black' , 'black' , 'Solarize_Light2' ] elif theme == 'Navy' : colors_list = [ 'midnightblue' , 'yellow' , 'darkslategray' , 'yellow' , 'midnightblue' , 'darkslategray' , 'dark_background' ] if file == 'SEARCH_PAGE' else [ 'midnightblue' , 'yellow' , 'darkslategray' , 'yellow' , 'darkslategray' , 'midnightblue' , 'dark_background' ] elif theme == 'Dark grey' : colors_list = [ 'darkslategray' , 'deepskyblue' , 'bisque4' , 'lawn green' , 'darkslategray' , 'darkolivegreen' , 'grayscale' ] if file == 'SEARCH_PAGE' else [ 'darkslategray' , 'deepskyblue' , 'bisque4' , 'lawn green' , 'darkolivegreen' , 'darkslategray' , 'grayscale' ] objects_parts = [ 'lbl_bg_color' , 'lbl_fg_color' , 'entry_bg_color' , 'entry_fg_color' , 'right_frame' , 'left_frame' , 'graph' , ] return { obj_part : color for obj_part , color in zip ( objects_parts , colors_list ) }
Based on selected by user theme & on file on which he actually is,
returns dictionary containing object names as keys and their colors as values.
Based on selected by user theme & on file on which he actually is returns dictionary containing object names as keys and their colors as values .
"""Based on selected by user theme & on file on which he actually is,
    returns dictionary containing object names as keys and their colors as values.
    Used for adjusting page theme (colors)."""
theme
file