| 27 | } |
| 28 | |
| 29 | void Settings::SetDefault() |
| 30 | { |
| 31 | this->data.MainTheme = "Adaptix_Dark"; |
| 32 | this->data.FontFamily = "Adaptix - JetBrains Mono"; |
| 33 | this->data.FontSize = 10; |
| 34 | this->data.GraphVersion = "Version 1"; |
| 35 | this->data.RemoteTerminalBufferSize = 10000; |
| 36 | |
| 37 | this->data.ConsoleTime = true; |
| 38 | this->data.ConsoleBufferSize = 50000; |
| 39 | this->data.ConsoleNoWrap = true; |
| 40 | this->data.ConsoleAutoScroll = false; |
| 41 | this->data.ConsoleShowBackground = true; |
| 42 | this->data.ConsoleTheme = "console_adaptix_dark"; |
| 43 | |
| 44 | for ( int i = 0; i < 16; i++) { |
| 45 | data.SessionsTableColumns[i] = true; |
| 46 | data.SessionsColumnOrder[i] = i; |
| 47 | } |
| 48 | |
| 49 | this->data.CheckHealth = true; |
| 50 | this->data.HealthCoaf = 2.0; |
| 51 | this->data.HealthOffset = 40; |
| 52 | |
| 53 | for ( int i = 0; i < 11; i++) |
| 54 | data.TasksTableColumns[i] = true; |
| 55 | |
| 56 | this->data.TabBlinkEnabled = true; |
| 57 | } |
| 58 | |
| 59 | void Settings::LoadFromDB() |
| 60 | { |