Assembled 2
A column based text editor
Loading...
Searching...
No Matches
Classes | Functions
themes.c File Reference
#include <editor/config.h>
#include <interface/theming/themes.h>
#include <global.h>
#include <ncurses.h>

Classes

struct  AS_Color
 

Functions

void register_custom_colors ()
 
struct AS_CfgTokconfigure_theme (struct AS_CfgTok *token)
 

Detailed Description

Author
awewsomegamer awews.nosp@m.omeg.nosp@m.amer@.nosp@m.gmai.nosp@m.l.com

LICENSE

Assembled - Column based text editor Copyright (C) 2023-2024 awewsomegamer

This file is apart of Assembled.

Assembled is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

DESCRIPTION

Responsible for handling parsing of theme files, and initializing them into ncurses.

Function Documentation

◆ configure_theme()

struct AS_CfgTok * configure_theme ( struct AS_CfgTok * token)

Configuration for themes.

Currently used to state which theme to use. Only one theme can be loaded at a time.

Parameters
structAS_CfgTok *token - The token which starts the line of configuration.
Returns
A pointer to the last token in the line of configuration (caller must use TOKEN_NEXT to advance to the start of the next line of configuration).

◆ register_custom_colors()

void register_custom_colors ( )

Function to initialize all custom color pairs.

Invoked from init_ncurses in main.c once ncurses has initialized colors.