@@ -61,7 +61,7 @@ void navigatorLoad(bool keepHistory = false);
6161
6262int main ()
6363{
64- if (Application::open () != FENSTER_APPLICATION_STATUS_SUCCESSFUL )
64+ if (Application::open () != fenster::ApplicationOpenStatus::Success )
6565 {
6666 klog (" failed to create UI" );
6767 return -1 ;
@@ -81,7 +81,7 @@ int main()
8181 navBarLayout->setSpace (10 );
8282 {
8383 navPrev = Button::create ();
84- navPrev->setStyle (FENSTER_BUTTON_STYLE_GHOST );
84+ navPrev->setVariant (ButtonVariant::Ghost );
8585 navPrev->setTitle (" <" );
8686 navBar->addChild (navPrev);
8787 navBarLayout->setComponentInfo (navPrev, 0 , 1 , 50 );
@@ -96,7 +96,7 @@ int main()
9696 });
9797
9898 navNext = Button::create ();
99- navNext->setStyle (FENSTER_BUTTON_STYLE_GHOST );
99+ navNext->setVariant (ButtonVariant::Ghost );
100100 navNext->setTitle (" >" );
101101 navBar->addChild (navNext);
102102 navBarLayout->setComponentInfo (navNext, 0 , 1 , 50 );
@@ -126,7 +126,7 @@ int main()
126126
127127 navUp = Button::create ();
128128 navUp->setTitle (" ^" );
129- navUp->setStyle (FENSTER_BUTTON_STYLE_GHOST );
129+ navUp->setVariant (ButtonVariant::Ghost );
130130 navBar->addChild (navUp);
131131 navBarLayout->setComponentInfo (navUp, 0 , 1 , 50 );
132132
0 commit comments