Skip to content

Commit

Permalink
Fix in Node::childAddAt.
Browse files Browse the repository at this point in the history
Updated codicon and nonicons.
Added a few icons.
  • Loading branch information
SpartanJ committed Mar 4, 2025
1 parent 5d35302 commit 42981ac
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
10 changes: 0 additions & 10 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,3 @@
### CSS

* Add support for [calc](https://developer.mozilla.org/en-US/docs/Web/CSS/calc).

### UICodeEditor

* Add better support for double-width characters.

* Add new CSS properties related to the widget.

### StyleSheetParser

* Detect errors and log them.
Binary file modified bin/assets/fonts/codicon.ttf
Binary file not shown.
Binary file modified bin/assets/fonts/nonicons.ttf
Binary file not shown.
3 changes: 2 additions & 1 deletion bin/assets/plugins/lspclient.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@
"name": "md-lsp",
"url": "https://github.com/matkrin/md-lsp",
"command": "md-lsp",
"file_patterns": ["%.md$"]
"file_patterns": ["%.md$"],
"rootIndicationFileNames": [".git"]
}
]
}
9 changes: 3 additions & 6 deletions src/eepp/scene/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,25 +657,22 @@ void Node::childAdd( Node* node ) {
void Node::childAddAt( Node* node, Uint32 index ) {
eeASSERT( NULL != node );

Node* nodeLoop = mChild;

node->setParent( this );

childRemove( node );

node->mParentNode = this;
node->mSceneNode = node->findSceneNode();

Node* nodeLoop = mChild;

if ( nodeLoop == NULL ) {
mChild = node;
mChildLast = node;
node->mNext = NULL;
node->mPrev = NULL;
} else {
if ( index == 0 ) {
if ( NULL != mChild ) {
if ( NULL != mChild )
mChild->mPrev = node;
}

node->mNext = mChild;
node->mPrev = NULL;
Expand Down
4 changes: 3 additions & 1 deletion src/eepp/ui/iconmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ UIIconTheme* IconManager::init( const std::string& iconThemeName, FontTrueType*
{ "diff-added", 0xeadc },
{ "diff-removed", 0xeadf },
{ "eye", 0xea70 },
{ "eye-closed", 0xeae7 } };
{ "eye-closed", 0xeae7 },
{ "settings-alt", 0xeb52 },
{ "attach", 0xec34 } };

for ( const auto& icon : codIcons )
iconTheme->add( UIGlyphIcon::New( icon.first, codIconFont, icon.second ) );
Expand Down

0 comments on commit 42981ac

Please sign in to comment.