refactor: replace USE_X11 with OS_LINUX for sharing code with Ozone (#25522)
This commit is contained in:
parent
137fc65e2f
commit
efd003d277
9 changed files with 18 additions and 18 deletions
|
@ -229,7 +229,7 @@ void UpdateDarkThemeSetting() {
|
|||
|
||||
} // namespace
|
||||
|
||||
#if defined(USE_X11)
|
||||
#if defined(OS_LINUX)
|
||||
class DarkThemeObserver : public ui::NativeThemeObserver {
|
||||
public:
|
||||
DarkThemeObserver() = default;
|
||||
|
@ -350,7 +350,7 @@ int ElectronBrowserMainParts::PreCreateThreads() {
|
|||
#if defined(USE_AURA)
|
||||
display::Screen* screen = views::CreateDesktopScreen();
|
||||
display::Screen::SetScreenInstance(screen);
|
||||
#if defined(USE_X11)
|
||||
#if defined(OS_LINUX)
|
||||
views::LinuxUI::instance()->UpdateDeviceScaleFactor();
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue