| 365 | } |
| 366 | |
| 367 | void ViewStyle::ClearStyles() { |
| 368 | // Reset all styles to be like the default style |
| 369 | for (unsigned int i=0; i<styles.size(); i++) { |
| 370 | if (i != STYLE_DEFAULT) { |
| 371 | styles[i].ClearTo(styles[STYLE_DEFAULT]); |
| 372 | } |
| 373 | } |
| 374 | styles[STYLE_LINENUMBER].back = Platform::Chrome(); |
| 375 | |
| 376 | // Set call tip fore/back to match the values previously set for call tips |
| 377 | styles[STYLE_CALLTIP].back = ColourDesired(0xff, 0xff, 0xff); |
| 378 | styles[STYLE_CALLTIP].fore = ColourDesired(0x80, 0x80, 0x80); |
| 379 | } |
| 380 | |
| 381 | void ViewStyle::SetStyleFontName(int styleIndex, const char *name) { |
| 382 | styles[styleIndex].fontName = fontNames.Save(name); |
no test coverage detected