Skip to content

Commit

Permalink
Scale strikethrough to match editor scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Meorge committed Dec 20, 2024
1 parent 9c582f3 commit 6d9a9fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scene/gui/code_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "core/os/keyboard.h"
#include "core/string/string_builder.h"
#include "core/string/ustring.h"
#include "editor/themes/editor_scale.h"

Check failure on line 38 in scene/gui/code_edit.cpp

View workflow job for this annotation

GitHub Actions / 🍏 iOS / Template (target=template_release)

'editor/themes/editor_scale.h' file not found

Check failure on line 38 in scene/gui/code_edit.cpp

View workflow job for this annotation

GitHub Actions / 🤖 Android / Template arm32 (target=template_release, arch=arm32)

'editor/themes/editor_scale.h' file not found

Check failure on line 38 in scene/gui/code_edit.cpp

View workflow job for this annotation

GitHub Actions / 🤖 Android / Template arm64 (target=template_release, arch=arm64)

'editor/themes/editor_scale.h' file not found

Check failure on line 38 in scene/gui/code_edit.cpp

View workflow job for this annotation

GitHub Actions / 🍎 macOS / Template (target=template_release, tests=yes)

'editor/themes/editor_scale.h' file not found

Check failure on line 38 in scene/gui/code_edit.cpp

View workflow job for this annotation

GitHub Actions / 🐧 Linux / Template w/ Mono (target=template_release, tests=yes)

editor/themes/editor_scale.h: No such file or directory

Check failure on line 38 in scene/gui/code_edit.cpp

View workflow job for this annotation

GitHub Actions / 🐧 Linux / Minimal template (target=template_release, tests=yes, everything disabled)

editor/themes/editor_scale.h: No such file or directory

Check failure on line 38 in scene/gui/code_edit.cpp

View workflow job for this annotation

GitHub Actions / 🌐 Web / Template w/ threads (target=template_release, threads=yes)

'editor/themes/editor_scale.h' file not found

Check failure on line 38 in scene/gui/code_edit.cpp

View workflow job for this annotation

GitHub Actions / 🌐 Web / Template w/o threads (target=template_release, threads=no)

'editor/themes/editor_scale.h' file not found

Check failure on line 38 in scene/gui/code_edit.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows / Template (target=template_release, tests=yes)

Cannot open include file: 'editor/themes/editor_scale.h': No such file or directory
#include "scene/theme/theme_db.h"

void CodeEdit::_apply_project_settings() {
Expand Down Expand Up @@ -247,7 +248,7 @@ void CodeEdit::_notification(int p_what) {
}

if (code_completion_options[i].deprecated) {
draw_line(Point2(title_pos.x, title_pos.y + row_height / 2), Point2(title_pos.x + tl->get_line_width(), title_pos.y + row_height / 2), code_completion_options[l].font_color, 2.0);
draw_line(Point2(title_pos.x, title_pos.y + row_height / 2), Point2(title_pos.x + tl->get_line_width(), title_pos.y + row_height / 2), code_completion_options[l].font_color, Math::round(2.0 * EDSCALE));
}

Point2 match_pos = Point2(code_completion_rect.position.x + icon_area_size.x + theme_cache.code_completion_icon_separation, code_completion_rect.position.y + i * row_height);
Expand Down

0 comments on commit 6d9a9fe

Please sign in to comment.