[Release] Milestone 10
Moderators: Lootyhoof, FranklinDM
Forum rules
Please do not create new topics here unless you are a theme author in need of a dedicated releases&support thread!
Please do not create new topics here unless you are a theme author in need of a dedicated releases&support thread!
-
- Astronaut
- Posts: 580
- Joined: 2018-04-20, 20:31
Re: [Release] Milestone 10
Looks like this is caused by Pure URL.
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
Re: [Release] Milestone 10
Can't reproduce the issue on Windows:
I'm not entirely sure (and might be wrong) about what causes this, but it might have something to do with how Pure URL defines its toolbar image by using the `image` attribute instead of styling it through CSS.You do not have the required permissions to view the files attached to this post.
-
- Knows the dark side
- Posts: 5517
- Joined: 2015-12-09, 15:45
Re: [Release] Milestone 10
FranklinDM wrote: ↑2020-05-22, 07:27I'm not entirely sure (and might be wrong) about what causes this, but it might have something to do with how Pure URL defines its toolbar image by using the `image` attribute instead of styling it through CSS.
Edit - I found the problem, I'm dynamically setting the image directly depending on if the extension is turned on or not. Is there a way to do that with CSS?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
Re: [Release] Milestone 10
You can set a state attribute in the toolbar button itself to track whether the extension is enabled. There are also other methods that could be used to achieve this such as updating the toolbar button's class, etc.
JS Pseudo-code:
In CSS:
JS Pseudo-code:
Code: Select all
var tb = document.getElementById("button-pureurl4pm");
tb.removeAttribute("state");
if (!extensionIsEnabled) {
tb.setAttribute("state", "disabled");
}
Code: Select all
#button-pureurl4pm {
list-style-image: url("chrome://pureurl4pm/skin/icon-green.png");
}
#button-pureurl4pm[state="disabled"] {
list-style-image: url("chrome://pureurl4pm/skin/icon-red.png");
}
-
- Knows the dark side
- Posts: 5517
- Joined: 2015-12-09, 15:45
Re: [Release] Milestone 10
Thanks
I was using Javascript to set style.listStyleImage with the image file but This is the Way, as the Mandalorian would say

I was using Javascript to set style.listStyleImage with the image file but This is the Way, as the Mandalorian would say

"One hosts to look them up, one DNS to find them and in the darkness BIND them."

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Astronaut
- Posts: 580
- Joined: 2018-04-20, 20:31
Re: [Release] Milestone 10
After the latest few updates, Milestone does not play well with Pure URL. 1 more option = 1 extra row = new row cropped. The OK/Cancel options are still ckickable (barely), but this needs to be fixed.
You do not have the required permissions to view the files attached to this post.
-
- Knows the dark side
- Posts: 5517
- Joined: 2015-12-09, 15:45
Re: [Release] Milestone 10
I don't get it, what's cropped?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Board Warrior
- Posts: 1273
- Joined: 2017-06-06, 07:38
Re: [Release] Milestone 10
The (action) buttons, towards the bottom of the dialog.
Re: [Release] Milestone 10
Moderator note: excessive quoting removed.
It is a wonderful theme, I have just downloaded it and I will definitely speak if something goes wrong.
-
- Knows the dark side
- Posts: 5517
- Joined: 2015-12-09, 15:45
Re: [Release] Milestone 10
Fresh profile with nothing but latest Pure URL (3.0.3 as of today) and Milestone -KlarkKentThe3rd wrote: ↑2020-07-13, 09:00After the latest few updates, Milestone does not play well with Pure URL. 1 more option = 1 extra row = new row cropped. The OK/Cancel options are still ckickable (barely), but this needs to be fixed.

"One hosts to look them up, one DNS to find them and in the darkness BIND them."

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Astronaut
- Posts: 580
- Joined: 2018-04-20, 20:31
Re: [Release] Milestone 10
I am using a Mac build.
-
- Knows the dark side
- Posts: 5517
- Joined: 2015-12-09, 15:45
Re: [Release] Milestone 10
Ah. Dunno then, could be platform specific with the theme.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
Re: [Release] Milestone 10
Because of how Pure URL's options window is set up (it's not a prefwindow), its dimensions (including the screen position) is preserved or "persisted" by the browser and might not be updated if something changes in the options window's layout. I can't do anything about this since it has nothing to do with the theme and is something that may have to be fixed by moonbat.KlarkKentThe3rd wrote: ↑2020-07-13, 09:00... The OK/Cancel options are still ckickable (barely), but this needs to be fixed.
With that said, you can manually reset these values through the following steps:
- Go to about:config and set devtools.chrome.enabled to true
- Open the Scratchpad, which could be found at Tools > Web Developer > Scratchpad
- In the Scratchpad window, set the Environment > Browser.
- Copy and paste the following code:
Code: Select all
function removeWH() { let xulStore = Components.classes["@mozilla.org/xul/xulstore;1"] .getService(Components.interfaces.nsIXULStore); xulStore.removeValue( "chrome://pureurl4pm/content/options.xul", "pureurl-options-dialog", "width"); xulStore.removeValue( "chrome://pureurl4pm/content/options.xul", "pureurl-options-dialog", "height"); } removeWH();
- Click Run and close the Scratchpad window without saving.
- Go to about:config and set devtools.chrome.enabled to false
You do not have the required permissions to view the files attached to this post.
Last edited by FranklinDM on 2020-07-17, 07:25, edited 1 time in total.
-
- Knows the dark side
- Posts: 5517
- Joined: 2015-12-09, 15:45
Re: [Release] Milestone 10
I have set persist="screenX screenY width height" in the options dialog. Will removing that help? I can put out a test XPI for Klarkkentthe3rd to test out.FranklinDM wrote: ↑2020-07-17, 07:21I can't do anything about this since it has nothing to do with the theme and is something that may have to be fixed by moonbat.
I tried making it into a prefwindow, but the garbage field list doesn't directly map to a preference string, and I gave up when it resulted in a lot of inconsistent behavior.
Last edited by moonbat on 2020-07-17, 07:29, edited 1 time in total.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
Re: [Release] Milestone 10
Removing [width height] should work, but you also have to remove the persisted values from the XUL store at some point (perhaps in a function that gets called only when you change the layout code) to ensure that the behavior is consistent.
-
- Knows the dark side
- Posts: 5517
- Joined: 2015-12-09, 15:45
Re: [Release] Milestone 10
How does one do that?
@Klarkkentthe3rd - please try this version and let me know if it fixes the dialog.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
Re: [Release] Milestone 10
See the code I wrote above inside the removeWH function.
-
- Knows the dark side
- Posts: 5517
- Joined: 2015-12-09, 15:45
Re: [Release] Milestone 10
Should I keep this function as a one time fix, just for this build for Klarkkentthe3rd, since I can remove the width and height persistence from options.xul?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX