MCPcopy Create free account
hub / github.com/TankOs/SFGUI / LoadThemeFromFile

Method LoadThemeFromFile

src/SFGUI/Engine.cpp:230–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230bool Engine::LoadThemeFromFile( const std::string& filename ) {
231 std::ifstream in( filename.c_str() );
232
233 if( !in.good() ) {
234 return false;
235 }
236
237 std::string data(
238 (std::istreambuf_iterator<char>( in )),
239 (std::istreambuf_iterator<char>())
240 );
241
242 return LoadThemeFromString( data );
243}
244
245void Engine::ShiftBorderColors( sf::Color& light_color, sf::Color& dark_color, int offset ) const {
246 // TODO: Replace by += and -=. Currently not possible with SFML (see SFML issue #114).

Callers 1

OnLoadThemeClickMethod · 0.45

Calls

no outgoing calls

Tested by 1

OnLoadThemeClickMethod · 0.36