Oni: Changing themes is buggy

Created on 27 Jul 2018  路  8Comments  路  Source: onivim/oni

Oni Version: 0.3.6
Neovim Version (Linux only):
Operating System: Microsoft Windows 10 x64 v1709, build n潞16299.15

Issue: Changing themes is buggy and laggy it slows Oni down so much.

Expected behavior: Like in VSCode or Atom, when i select a theme, it instantaneously changes the actual theme to the new i selected. In Oni, this doesn't happen.

Actual behavior: It takes so much to change between themes, when i select one in the command palette, the screen flashes and the theme starts to load slowly. After about 5-10 seconds i can use Oni normally again.

Steps to reproduce: Just open up the command palette and select Themes => Choose theme and select any theme from the list.

I understand that this is still an experimental / beta version, but even with all the bugs, the development team is to be congratulated! It really is a beautiful job! Thank you :) 馃憤

0.3.8 bug good first issue

All 8 comments

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

I've had a quick look into this and it seems possibly straight forward to fix the relevant file is https://github.com/onivim/oni/blob/master/browser/src/Services/Themes/ThemePicker.ts
I found that removing this clause partially fixes the issue but havent had time for more investigation as it is not a complete fix

Glad to know it is an easy thing to fix. Thanks for the support :D

Can i take it?

@koutselakismanos that would be fantastic 馃帀 let me know if you need any help

@Akin909 What are you suggesting that should be done? When using x mode :colorscheme gruvbox or :colorscheme node it works properly, i tried checking if there is a problem when configuration.setValues({ "ui.colorscheme": newOption.label }) or when themeManager.setTheme(newOption.label)
but i can't seem to find the problem.

I think the problem @koutselakismanos is in the command pallete theme switcher.

That is, Ctrl-Shift-P (cmd-shift-p on mac) and then select the theme changer. You can swap themes there, and highlighting a different theme will swap to that theme, but seems to cause some flickering and other issues where the theme doesn't swap and more.

@CrossR I meant i can't seem to find the solution, i have managed to fix the problem but not completely, there is still some flickering but only if you change themes really fast. I will keep trying to solve the problem.

Was this page helpful?
0 / 5 - 0 ratings