Developing applications for Android often takes long hours, and the bright white interface of the development environment Android Studio can seriously strain the eyes. Enabling a dark theme is not just an aesthetic preference, but also a way to reduce eye strain in low-light conditions. Many developers switch to โnight modeโ to increase concentration and comfort while writing code.
Fortunately, modern versions Android Studio (starting with 2020.3 Arctic Fox and newer) have built-in support for dark themes, which integrates with both Windows, macOS and Linux system settings, and works offline. The switching process is intuitive, but there are several nuances regarding editor color schemes and the behavior of project windows that are worth considering in detail.
In this article, we will analyze the step-by-step algorithm for activating black mode, discuss the differences between interface themes and syntax highlighting schemes, and also solve possible problems when individual elements remain light. You will learn how to customize the environment so that it looks stylish and professional, without losing the readability of the code.
Initial theme setup through the Settings menu
The main way to activate the dark mode is through the standard settings menu of the integrated development environment. To get there, you need to use hotkeys or the file menu. On operating systems of the family Windows i Linux you should press the combination Ctrl + Alt + S, while users macOS should use the combination Cmd +, or select the item Android Studio โ Preferences in the top menu.
After opening the settings window, find the section Appearance & Behaviorin the left panel. This is where all the parameters responsible for the visual display of controls, toolbars and dialog boxes are concentrated. Inside this section, select a subsection Appearance, where you will see a drop-down list with the name Theme.
By default, the value IntelliJ or Lightcan be selected there. You'll need to change it to Dark or High contrastif you want maximum contrast. After selecting the desired option, click the button Apply in the lower right corner of the window to apply the changes immediately without closing the settings menu.
โ ๏ธ Attention: Changing the interface theme (Theme) does not always automatically change the color scheme of the code editor itself. If the menu background has become black, but the text in the files remains on a white background, you will need to perform additional steps described in the next section.
It is worth noting that in new versions Android Studio an option has appeared Sync with OS. If your operating system is already in dark mode (for example, Windows 10/11 has Dark Theme enabled or Dark Mode is enabled on macOS), the development environment may automatically pick up this state. However, for a guaranteed result, it is better to set the value manually.
Setting the color scheme of the code editor
Even if the app interface has become dark, the code writing area can remain light, since a separate parameter is responsible for it โ Color Scheme. This is a critical point, since it is in the editor that the developer spends 90% of his time. Color mismatch can create an unpleasant visual dissonance.
To change the editor palette, return to the settings window (Settings or Preferences). In the left menu, follow the path Editor โ Color Scheme. In the list that opens Scheme you will see the available presets. Ideal for dark mode are options with names Darcula, Obsidian or Monokai.
Scheme Darcula is native to products JetBrains and provides the best compatibility with interface elements Android Studio. She uses soft dark gray shades that do not hurt the eyes, unlike pure black. Select the desired scheme from the list and confirm the action with the button OK.
If you donโt like the standard schemes, you can import custom themes in .jar or .icls format through the gear button in the Color Scheme menu. A popular choice among developers is the "One Dark" or "Dracula" theme.
After applying the scheme, pay attention to the readability of the symbols. Some dark themes may make certain keywords or comments appear too pale. In this case, you can go to the tab Colors inside the section Color Scheme and manually adjust the brightness of specific syntax elements, such as Keyword, String or Comment.
Integration with operating system system settings
A modern approach to development involves maximum automation, including control of the appearance of applications. Android Studio learned to respond to system events of changing the time of day or manually switching the theme in the OS. This saves the user from having to go into the settings every time when transitioning from daylight to evening light.
In the Appearance & Behavior โ Appearance section, find the option related to synchronization. In the latest versions it may be called Use dark theme with reference to system settings. If this function is active, then when Windows or macOS switches to night mode, the development environment will also turn black.
However, it is worth considering that the behavior of this function may vary depending on the version JDKon which it is running. Android Studio. New versions of the environment use their own runtime based on JetBrains Runtime, which better supports native Look & Feel themes. If synchronization does not work, check whether you are using an outdated version of the software.
| Operating system | Path to system theme | Auto-switch support |
|---|---|---|
| Windows 10/11 | Settings โ Personalization โ Colors | Full (in new versions of AS) |
| macOS | System settings โ Basic | Full (native) |
| Ubuntu / GNOME | Settings โ Appearance | Partial (depending on GTK) |
| Windows 7/8 | Control Panel โ Personalization | Absent (manual only) |
โ ๏ธ Attention: Operating system interfaces and settings Android Studio are regularly updated. If you cannot find the specified synchronization option, check the official help section in the menu Help โ Find Actionby searching for "theme".
Fine-tuning the interface and toolbars
Sometimes even after enabling the dark theme, some elements such as as tooltips, context menus, or toolbars may appear unnaturally light or have strange artifacts. This is often due to the fact that individual interface components use their own rendering settings.
For deep customization, you can use the action search. Click Ctrl + Shift + A (or Cmd + Shift + A on Mac) and enter the word Registry. This will open the hidden settings registry menu IntelliJ Platform. Here you can find parameters responsible for font smoothing, window transparency and frame drawing.
One โโof the common problems is the mismatch of the background color in the tool Logcat or Device Manager. These windows may remain white unless they are given an explicit color scheme. Check the settings of these specific tools in the general menu Settings โ Editor โ Color Scheme โ Console Colors.
โ๏ธ Checking the dark theme
It is also worth paying attention to the icons. In dark mode, some standard icons may be lost in the background of the panels. In the appearance settings (Appearance), make sure that the correct set of icons is selected, optimized for dark themes, if such an option is available in your version Android Studio.
Solving display problems on different monitors
When working with multiple monitors, especially if they have different pixel densities (DPI) or belong to different technologies (such as IPS and OLED), dark theme may appear differently. On OLED screens, the black color will be deep and rich, while on IPS panels it may look like a dark gray.
If you notice that on one of the screens the interface looks washed out or the colors are not inverted correctly, the problem may lie in the scaling settings Windows. Try changing the scaling setting for a specific display on the system, and then restart Android Studio completely.
In rare cases, clearing the system cache helps. Go to menu File โ Invalidate Caches... and select option Invalidate and Restart. This action will reload the indexes and rebuild the application interface, which often eliminates graphical glitches that arose after updating the video card drivers or the development environment itself.
Why does black look gray?
On most LCD and IPS monitors, it is impossible to display ideal black color (RGB 0,0,0) due to the matrix backlight. The dark theme in Android Studio uses the #3c3f41 (Darcula) hue, which is specially selected to look softer than pure black and reduce the contrast load during long-term work.
Alternative plugins for customizing the appearance
Standard capabilities are sometimes not enough to create a unique working atmosphere. The developer community has created many plugins that allow you to radically change the look Android Studio. These extensions are available in the official marketplace JetBrains.
To install the plugin, open the section Plugins in the settings and go to the Marketplacetab. In the search, enter, for example, Material Theme UI or Atom Material Icons. These plugins not only change colors, but also add new sets of icons, change the shape of tabs and improve the visual hierarchy of elements.
The popular plugin Material Theme UI offers several ready-made palettes, including Deep Ocean, Night Owl and Light Owl. After installing and activating the plugin, a new menu will appear to quickly change themes without having to delve into deep settings. This is a great way to quickly test different design options.
โ ๏ธ Attention: Installing third-party plugins may slightly increase startup time Android Studio and RAM consumption. If you are working on a weak computer, use only the necessary extensions and disable unused ones.
Do not forget to regularly update the installed plugins. Theme developers often release patches that correct compatibility with new versions Android Studioto avoid problems with displaying new interface elements added in recent IDE releases.
Using specialized plugins like Material Theme UI gives more flexibility in customizing colors than standard tools, but requires careful attention to system performance.
FAQ: Frequently asked questions about the dark theme
Why did the menu remain white after enabling the dark theme?
Most likely, you only changed the editor layout (Color Scheme), but not the interface theme itself (Theme). Check the section Appearance & Behavior โ Appearance and make sure that in item Theme the value is selected Dark or Darcula.
Is it possible to make the background completely black (#000000)?
Standard theme Darcula uses dark gray color to reduce eye fatigue. To get pure black, you will need to install a third-party plugin (for example, Material Theme UI) and select the appropriate palette, or manually edit the colors in the Editor โ Color Scheme โ General โ Text โ Default textsection, changing the background to black.
How to return the light theme back?
The process is completely reversible. Go to Settings โ Appearance & Behavior โ Appearance and select Theme option Light or IntelliJ Lightfrom the list. Don't forget to click the button Apply to save changes.
Does the dark theme affect the build of the project?
No, visual design Android Studio does not affect the compilation process, build speed (Gradle) or emulator operation. This is a purely cosmetic setting intended for the comfort of the developer.
Why are the tooltips still white?
In some older versions Android Studio or when using specific video card drivers, system tips may be rendered by the OS rather than the IDE itself. Try updating the video drivers or disabling hardware acceleration in the settings Appearance (tick Disable hardware acceleration), if such an option is available.