Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ dkms.conf
build/
.zig-cache/
git_check.sh
.graptos/

# Github actions
.github/
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP_NAME := graptos
APP_ID := io.github.graptos.Editor
VERSION := 0.23.66
VERSION := 0.23.67
PREFIX ?= /usr/local
CC ?= cc
BUILD_DIR := build
Expand All @@ -26,6 +26,8 @@ SOURCES := \
$(SRC_DIR)/editor_tab_latex.c \
$(SRC_DIR)/editor_tab_hover.c \
$(SRC_DIR)/editor_tab_completion.c \
$(SRC_DIR)/editor_notes.c \
$(SRC_DIR)/editor_tab_notes.c \
$(SRC_DIR)/editor_tab_keys.c \
$(SRC_DIR)/editor_tab_diagnostics.c \
$(SRC_DIR)/editor_tab_edit.c \
Expand Down Expand Up @@ -127,7 +129,7 @@ check: $(VERSION_HEADER)
test: $(BUILD_DIR)/unit_tests
$<

$(BUILD_DIR)/unit_tests: $(TEST_DIR)/unit_tests.c $(SRC_DIR)/codex_protocol.c $(SRC_DIR)/syntax_diagnostics.c $(SRC_DIR)/project_init.c $(SRC_DIR)/formatter.c $(SRC_DIR)/formatter_lexer.c $(SRC_DIR)/formatter_layout.c $(SRC_DIR)/formatter_spacing.c $(SRC_DIR)/formatter_scope.c $(SRC_DIR)/syntax.c | $(BUILD_DIR)
$(BUILD_DIR)/unit_tests: $(TEST_DIR)/unit_tests.c $(SRC_DIR)/codex_protocol.c $(SRC_DIR)/syntax_diagnostics.c $(SRC_DIR)/project_init.c $(SRC_DIR)/formatter.c $(SRC_DIR)/formatter_lexer.c $(SRC_DIR)/formatter_layout.c $(SRC_DIR)/formatter_spacing.c $(SRC_DIR)/formatter_scope.c $(SRC_DIR)/syntax.c $(SRC_DIR)/editor_notes.c | $(BUILD_DIR)
$(CC) $(CPPFLAGS) $(CFLAGS) $(WARNINGS) $(GTK_SYSTEM_CFLAGS) -std=c11 $^ $(GTK_LIBS) -o $@

smoke-test: $(BUILD_DIR)/smoke_window
Expand Down
6 changes: 6 additions & 0 deletions data/themes/apprentice.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
@define-color graptos_editor_fg #bcbcbc;
@define-color graptos_editor_gutter_bg #1c1c1c;
@define-color graptos_editor_gutter_fg #6c6c6c;
@define-color graptos_note_indicator #f9c74f;
@define-color graptos_note_indicator_active #ffd166;
@define-color graptos_note_popover_bg #181a1f;
@define-color graptos_note_popover_fg #d4d4d4;
@define-color graptos_note_popover_border #3a4050;
@define-color graptos_editor_current_line_bg #303030;
@define-color graptos_editor_selection_bg #444444;
@define-color graptos_editor_selection_fg #ffffff;
Expand Down Expand Up @@ -86,6 +91,7 @@
.graptos-root { background: @graptos_editor_bg; color: @graptos_editor_fg; }
.graptos-editor, .graptos-editor text, textview.graptos-editor, textview.graptos-editor text, sourceview.graptos-editor, sourceview.graptos-editor text { background: @graptos_editor_bg; color: @graptos_editor_fg; caret-color: @graptos_editor_cursor; }
sourceview.graptos-editor gutter, sourceview.graptos-editor gutter * { background: @graptos_editor_gutter_bg; color: @graptos_editor_gutter_fg; }
.graptos-note-popover, .graptos-note-popover textview, .graptos-note-popover textview text, .graptos-note-popover .graptos-note-input, .graptos-note-popover .graptos-note-status { background: @graptos_note_popover_bg; color: @graptos_note_popover_fg; border-color: @graptos_note_popover_border; }
sourceview.graptos-editor text selection { background: @graptos_editor_selection_bg; color: @graptos_editor_selection_fg; }
.graptos-top { background: @graptos_topbar_bg; color: @graptos_topbar_fg; }
.graptos-bottom, .graptos-search-panel, .graptos-tool-panel { background: @graptos_bottombar_bg; color: @graptos_bottombar_fg; }
Expand Down
6 changes: 6 additions & 0 deletions data/themes/dracula.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
@define-color graptos_editor_fg #f8f8f2;
@define-color graptos_editor_gutter_bg #21222c;
@define-color graptos_editor_gutter_fg #6272a4;
@define-color graptos_note_indicator #f9c74f;
@define-color graptos_note_indicator_active #ffd166;
@define-color graptos_note_popover_bg #181a1f;
@define-color graptos_note_popover_fg #d4d4d4;
@define-color graptos_note_popover_border #3a4050;
@define-color graptos_editor_current_line_bg #44475a;
@define-color graptos_editor_selection_bg #44475a;
@define-color graptos_editor_selection_fg #f8f8f2;
Expand Down Expand Up @@ -86,6 +91,7 @@
.graptos-root { background: @graptos_editor_bg; color: @graptos_editor_fg; }
.graptos-editor, .graptos-editor text, textview.graptos-editor, textview.graptos-editor text, sourceview.graptos-editor, sourceview.graptos-editor text { background: @graptos_editor_bg; color: @graptos_editor_fg; caret-color: @graptos_editor_cursor; }
sourceview.graptos-editor gutter, sourceview.graptos-editor gutter * { background: @graptos_editor_gutter_bg; color: @graptos_editor_gutter_fg; }
.graptos-note-popover, .graptos-note-popover textview, .graptos-note-popover textview text, .graptos-note-popover .graptos-note-input, .graptos-note-popover .graptos-note-status { background: @graptos_note_popover_bg; color: @graptos_note_popover_fg; border-color: @graptos_note_popover_border; }
sourceview.graptos-editor text selection { background: @graptos_editor_selection_bg; color: @graptos_editor_selection_fg; }
.graptos-top { background: @graptos_topbar_bg; color: @graptos_topbar_fg; }
.graptos-bottom, .graptos-search-panel, .graptos-tool-panel { background: @graptos_bottombar_bg; color: @graptos_bottombar_fg; }
Expand Down
6 changes: 6 additions & 0 deletions data/themes/github.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
@define-color graptos_editor_fg #c9d1d9;
@define-color graptos_editor_gutter_bg #010409;
@define-color graptos_editor_gutter_fg #8b949e;
@define-color graptos_note_indicator #f9c74f;
@define-color graptos_note_indicator_active #ffd166;
@define-color graptos_note_popover_bg #181a1f;
@define-color graptos_note_popover_fg #d4d4d4;
@define-color graptos_note_popover_border #3a4050;
@define-color graptos_editor_current_line_bg #161b22;
@define-color graptos_editor_selection_bg #264f78;
@define-color graptos_editor_selection_fg #ffffff;
Expand Down Expand Up @@ -86,6 +91,7 @@
.graptos-root { background: @graptos_editor_bg; color: @graptos_editor_fg; }
.graptos-editor, .graptos-editor text, textview.graptos-editor, textview.graptos-editor text, sourceview.graptos-editor, sourceview.graptos-editor text { background: @graptos_editor_bg; color: @graptos_editor_fg; caret-color: @graptos_editor_cursor; }
sourceview.graptos-editor gutter, sourceview.graptos-editor gutter * { background: @graptos_editor_gutter_bg; color: @graptos_editor_gutter_fg; }
.graptos-note-popover, .graptos-note-popover textview, .graptos-note-popover textview text, .graptos-note-popover .graptos-note-input, .graptos-note-popover .graptos-note-status { background: @graptos_note_popover_bg; color: @graptos_note_popover_fg; border-color: @graptos_note_popover_border; }
sourceview.graptos-editor text selection { background: @graptos_editor_selection_bg; color: @graptos_editor_selection_fg; }
.graptos-top { background: @graptos_topbar_bg; color: @graptos_topbar_fg; }
.graptos-bottom, .graptos-search-panel, .graptos-tool-panel { background: @graptos_bottombar_bg; color: @graptos_bottombar_fg; }
Expand Down
18 changes: 18 additions & 0 deletions data/themes/graptos.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
/* GRAPTOS THEME BEGIN */
@define-color graptos_editor_bg #181a1f;
@define-color graptos_editor_fg #d4d4d4;
@define-color graptos_editor_gutter_bg #181a1f;
@define-color graptos_editor_gutter_fg #8b949e;
@define-color graptos_note_indicator #f9c74f;
@define-color graptos_note_indicator_active #ffd166;
@define-color graptos_note_popover_bg #181a1f;
@define-color graptos_note_popover_fg #d4d4d4;
@define-color graptos_note_popover_border #3a4050;
@define-color graptos_sidebar_bg #111318;
@define-color graptos_tabbar_bg #111318;
@define-color graptos_tabbar_border #00000000;
Expand Down Expand Up @@ -115,6 +122,17 @@ popover.graptos-hover-popover contents {
background-color: @graptos_popover_bg;
}

popover.graptos-note-popover,
popover.graptos-note-popover contents,
popover.graptos-note-popover textview,
popover.graptos-note-popover textview text,
popover.graptos-note-popover .graptos-note-status {
background: @graptos_note_popover_bg;
background-color: @graptos_note_popover_bg;
color: @graptos_note_popover_fg;
border-color: @graptos_note_popover_border;
}

.graptos-completion-list row:selected,
.graptos-completion-list row:selected label,
.graptos-completion-list row:selected .graptos-completion-title,
Expand Down
6 changes: 6 additions & 0 deletions data/themes/gruvbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
@define-color graptos_editor_fg #ebdbb2;
@define-color graptos_editor_gutter_bg #1d2021;
@define-color graptos_editor_gutter_fg #928374;
@define-color graptos_note_indicator #f9c74f;
@define-color graptos_note_indicator_active #ffd166;
@define-color graptos_note_popover_bg #181a1f;
@define-color graptos_note_popover_fg #d4d4d4;
@define-color graptos_note_popover_border #3a4050;
@define-color graptos_editor_current_line_bg #32302f;
@define-color graptos_editor_selection_bg #504945;
@define-color graptos_editor_selection_fg #fbf1c7;
Expand Down Expand Up @@ -86,6 +91,7 @@
.graptos-root { background: @graptos_editor_bg; color: @graptos_editor_fg; }
.graptos-editor, .graptos-editor text, textview.graptos-editor, textview.graptos-editor text, sourceview.graptos-editor, sourceview.graptos-editor text { background: @graptos_editor_bg; color: @graptos_editor_fg; caret-color: @graptos_editor_cursor; }
sourceview.graptos-editor gutter, sourceview.graptos-editor gutter * { background: @graptos_editor_gutter_bg; color: @graptos_editor_gutter_fg; }
.graptos-note-popover, .graptos-note-popover textview, .graptos-note-popover textview text, .graptos-note-popover .graptos-note-input, .graptos-note-popover .graptos-note-status { background: @graptos_note_popover_bg; color: @graptos_note_popover_fg; border-color: @graptos_note_popover_border; }
sourceview.graptos-editor text selection { background: @graptos_editor_selection_bg; color: @graptos_editor_selection_fg; }
.graptos-top { background: @graptos_topbar_bg; color: @graptos_topbar_fg; }
.graptos-bottom, .graptos-search-panel, .graptos-tool-panel { background: @graptos_bottombar_bg; color: @graptos_bottombar_fg; }
Expand Down
6 changes: 6 additions & 0 deletions data/themes/moonfly.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
@define-color graptos_editor_fg #bdbdbd;
@define-color graptos_editor_gutter_bg #0f0f0f;
@define-color graptos_editor_gutter_fg #626262;
@define-color graptos_note_indicator #f9c74f;
@define-color graptos_note_indicator_active #ffd166;
@define-color graptos_note_popover_bg #181a1f;
@define-color graptos_note_popover_fg #d4d4d4;
@define-color graptos_note_popover_border #3a4050;
@define-color graptos_editor_current_line_bg #1c1c1c;
@define-color graptos_editor_selection_bg #b2ceee;
@define-color graptos_editor_selection_fg #080808;
Expand Down Expand Up @@ -86,6 +91,7 @@
.graptos-root { background: @graptos_editor_bg; color: @graptos_editor_fg; }
.graptos-editor, .graptos-editor text, textview.graptos-editor, textview.graptos-editor text, sourceview.graptos-editor, sourceview.graptos-editor text { background: @graptos_editor_bg; color: @graptos_editor_fg; caret-color: @graptos_editor_cursor; }
sourceview.graptos-editor gutter, sourceview.graptos-editor gutter * { background: @graptos_editor_gutter_bg; color: @graptos_editor_gutter_fg; }
.graptos-note-popover, .graptos-note-popover textview, .graptos-note-popover textview text, .graptos-note-popover .graptos-note-input, .graptos-note-popover .graptos-note-status { background: @graptos_note_popover_bg; color: @graptos_note_popover_fg; border-color: @graptos_note_popover_border; }
sourceview.graptos-editor text selection { background: @graptos_editor_selection_bg; color: @graptos_editor_selection_fg; }
.graptos-top { background: @graptos_topbar_bg; color: @graptos_topbar_fg; }
.graptos-bottom, .graptos-search-panel, .graptos-tool-panel { background: @graptos_bottombar_bg; color: @graptos_bottombar_fg; }
Expand Down
6 changes: 6 additions & 0 deletions data/themes/srcery.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
@define-color graptos_editor_fg #fce8c3;
@define-color graptos_editor_gutter_bg #121212;
@define-color graptos_editor_gutter_fg #918175;
@define-color graptos_note_indicator #f9c74f;
@define-color graptos_note_indicator_active #ffd166;
@define-color graptos_note_popover_bg #181a1f;
@define-color graptos_note_popover_fg #d4d4d4;
@define-color graptos_note_popover_border #3a4050;
@define-color graptos_editor_current_line_bg #2d2b28;
@define-color graptos_editor_selection_bg #3a3935;
@define-color graptos_editor_selection_fg #fce8c3;
Expand Down Expand Up @@ -86,6 +91,7 @@
.graptos-root { background: @graptos_editor_bg; color: @graptos_editor_fg; }
.graptos-editor, .graptos-editor text, textview.graptos-editor, textview.graptos-editor text, sourceview.graptos-editor, sourceview.graptos-editor text { background: @graptos_editor_bg; color: @graptos_editor_fg; caret-color: @graptos_editor_cursor; }
sourceview.graptos-editor gutter, sourceview.graptos-editor gutter * { background: @graptos_editor_gutter_bg; color: @graptos_editor_gutter_fg; }
.graptos-note-popover, .graptos-note-popover textview, .graptos-note-popover textview text, .graptos-note-popover .graptos-note-input, .graptos-note-popover .graptos-note-status { background: @graptos_note_popover_bg; color: @graptos_note_popover_fg; border-color: @graptos_note_popover_border; }
sourceview.graptos-editor text selection { background: @graptos_editor_selection_bg; color: @graptos_editor_selection_fg; }
.graptos-top { background: @graptos_topbar_bg; color: @graptos_topbar_fg; }
.graptos-bottom, .graptos-search-panel, .graptos-tool-panel { background: @graptos_bottombar_bg; color: @graptos_bottombar_fg; }
Expand Down
6 changes: 6 additions & 0 deletions data/themes/tokyonight.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
@define-color graptos_editor_fg #c0caf5;
@define-color graptos_editor_gutter_bg #15161e;
@define-color graptos_editor_gutter_fg #565f89;
@define-color graptos_note_indicator #f9c74f;
@define-color graptos_note_indicator_active #ffd166;
@define-color graptos_note_popover_bg #181a1f;
@define-color graptos_note_popover_fg #d4d4d4;
@define-color graptos_note_popover_border #3a4050;
@define-color graptos_editor_current_line_bg #24283b;
@define-color graptos_editor_selection_bg #33467c;
@define-color graptos_editor_selection_fg #c0caf5;
Expand Down Expand Up @@ -86,6 +91,7 @@
.graptos-root { background: @graptos_editor_bg; color: @graptos_editor_fg; }
.graptos-editor, .graptos-editor text, textview.graptos-editor, textview.graptos-editor text, sourceview.graptos-editor, sourceview.graptos-editor text { background: @graptos_editor_bg; color: @graptos_editor_fg; caret-color: @graptos_editor_cursor; }
sourceview.graptos-editor gutter, sourceview.graptos-editor gutter * { background: @graptos_editor_gutter_bg; color: @graptos_editor_gutter_fg; }
.graptos-note-popover, .graptos-note-popover textview, .graptos-note-popover textview text, .graptos-note-popover .graptos-note-input, .graptos-note-popover .graptos-note-status { background: @graptos_note_popover_bg; color: @graptos_note_popover_fg; border-color: @graptos_note_popover_border; }
sourceview.graptos-editor text selection { background: @graptos_editor_selection_bg; color: @graptos_editor_selection_fg; }
.graptos-top { background: @graptos_topbar_bg; color: @graptos_topbar_fg; }
.graptos-bottom, .graptos-search-panel, .graptos-tool-panel { background: @graptos_bottombar_bg; color: @graptos_bottombar_fg; }
Expand Down
5 changes: 5 additions & 0 deletions src/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ typedef struct _EditorWindow {
char *editor_fg_color; /**< Editor fg color. */
char *editor_gutter_bg_color; /**< Editor gutter bg color. */
char *editor_gutter_fg_color; /**< Editor gutter fg color. */
char *note_indicator_color; /**< Note indicator color. */
char *note_indicator_active_color; /**< Active note indicator color. */
char *note_popover_bg_color; /**< Note popover background color. */
char *note_popover_fg_color; /**< Note popover foreground color. */
char *note_popover_border_color; /**< Note popover border color. */
char *editor_current_line_bg_color; /**< Editor current line bg color. */
char *editor_selection_bg_color; /**< Editor selection bg color. */
char *editor_selection_fg_color; /**< Editor selection fg color. */
Expand Down
Loading