Git Product home page Git Product logo

Comments (6)

takuyaW avatar takuyaW commented on August 17, 2024 1

I have confirmed that the issue persists even when using an incognito window. Upon reviewing the code again, I identified that the problem is due to the load_default_values method in the base-gui.js file, where the setting is being changed to false. I plan to resolve this issue by changing the relevant code part to true. Thank you.

//transparency
var transparency_cookie = this.Helper.getCookie('transparency');
if (transparency_cookie === null) {
//default
config.TRANSPARENCY = false;
}
if (transparency_cookie) {
config.TRANSPARENCY = true;
}
else {
config.TRANSPARENCY = false;
}

from minipaint.

viliusle avatar viliusle commented on August 17, 2024 1

Oh, in that case it looks like bug, I would try to remove line 96 at all, since default value should be in config.php- it could solve your issue.

from minipaint.

takuyaW avatar takuyaW commented on August 17, 2024 1

Thank you for your quick reply.
I think there is a similar problem with the LANG variable, just like when config.TRANSPARENCY doesn't load correctly the first time. In this scenario, I think config.LANG should be loaded if lang is null.

load_translations() {
var lang = this.Helper.getCookie('language');
//load from params
var params = this.Helper.get_url_parameters();
if(params.lang != undefined){
lang = params.lang.replace(/([^a-z]+)/gi, '');
}
if (lang != null && lang != config.LANG) {
config.LANG = lang.replace(/([^a-z]+)/gi, '');
this.Tools_translate.translate(config.LANG);
}
}

from minipaint.

viliusle avatar viliusle commented on August 17, 2024

You can change it on config file, rebuild it from sources code and you will have modified version with that change.

If you are talking about changing it for everybody on https://viliusle.github.io/miniPaint/ - this is interesting, but it requires more opinions, research.

from minipaint.

takuyaW avatar takuyaW commented on August 17, 2024

I tried making the changes in the config file and ran npm run build, but unfortunately, I didn't see the expected change to a transparent state. It seems that just changing the config settings may not be enough.

from minipaint.

viliusle avatar viliusle commented on August 17, 2024

after change, use incognito window (or delete cookies), because once you save settings, it is saved in cookies. Settings works only if user is new and does not have any settings saved yet.

from minipaint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.