Ventoy icon indicating copy to clipboard operation
Ventoy copied to clipboard

Update theme.txt

Open 1457384613gh opened this issue 1 year ago • 37 comments

以背景图片的原始比例显示背景图片。

1457384613gh avatar Jul 03 '23 14:07 1457384613gh

以背景图片的原始比例显背景图 fotoğrafları.

  • boot_menu How to apply in

Tnctr-altay-24 avatar Jul 05 '23 07:07 Tnctr-altay-24

Set resolution max.

1457384613gh avatar Jul 05 '23 07:07 1457384613gh

1024768 19201080

Tnctr-altay-24 avatar Jul 05 '23 08:07 Tnctr-altay-24

Another solution, (need a background.png of 16:9) https://github.com/M-L-P/theme-ventoy/blob/main/ventoy/themes/ventoy/theme.txt

💻️Preview👀

1024x768

1k

1920x1080

1080p 1080p-tree

1457384613gh avatar Jul 05 '23 08:07 1457384613gh

Your theme configuration is very nice. Thank you for the information.

Tnctr-altay-24 avatar Jul 05 '23 09:07 Tnctr-altay-24

  • boot_menu

Around yours, Adjust again to accommodate maximum resolution width = xxx height = yyy

1457384613gh avatar Jul 05 '23 09:07 1457384613gh

  • boot_menu { left = 20% width = 60% top = 20% height = 55%

The setting is nice according to 1024x768 resolution, 1920x1080 as in the second picture

Tnctr-altay-24 avatar Jul 05 '23 09:07 Tnctr-altay-24

hello @1457384613gh master; I apologize for not sending a notification to the appropriate place. I'm following your projects, please I need your help on something, can you help me? Since my computer is limited, I do not have the opportunity to recompile the vento. Could you please make the following changes and compile the vento and send it to me? Thank you in advance and I wish you success in your work.

https://github.com/ventoy/Ventoy/blob/c8dc36a5c3bb042d92a04304caaa7fa7249d9d2e/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_browser.c#L370C9-L384C10

    {
        grub_snprintf(node->menuentry, sizeof(node->menuentry),
            "menuentry \"%-10s [%s]\" --class=vtoydir {\n"
            "  set browser_dir=0x%lx \n"
            "  vt_browser_dir %s ${browser_dir} \"%s/%s\"\n"
            "}\n",
            "DIR", filename, (ulong)g_menu_fs, g_menu_device, g_menu_path_buf, filename);
    }
    else
    {
        grub_snprintf(node->menuentry, sizeof(node->menuentry),
            "menuentry \"[%s]\" --class=vtoydir {\n"
            "  set browser_dir=0x%lx \n"
            "  vt_browser_dir %s ${browser_dir} \"%s/%s\"\n"
            "}\n",
            filename, (ulong)g_menu_fs, g_menu_device, g_menu_path_buf, filename);
    }

Tnctr-altay-24 avatar Sep 04 '23 11:09 Tnctr-altay-24

You can make a fork, and then click "actions".

And I don't know what you want me test.

1457384613gh avatar Sep 04 '23 14:09 1457384613gh

You can make a fork, and then click "actions".

And I don't know what you want me test.

I made the necessary adjustments in ventoy grub.cfg, only ventoy vt_browser.c needs to be changed and ventoy needs to be recreated. I logged in via tlf.

I opened a discussion here, please take a look. https://forums.ventoy.net/showthread.php?tid=2604

Tnctr-altay-24 avatar Sep 04 '23 15:09 Tnctr-altay-24

I have read something on forums, but I have still not understood, yet.

I just see DIR deleted.

Would you like filename to be the title of menuentry?

1457384613gh avatar Sep 04 '23 15:09 1457384613gh

Can you apply the code I gave above to the vt_browser.c file and prepare a cli version?

I made a short video, could you watch it? https://disk.yandex.com.tr/i/cWzwLX-O24yJ7A

Tnctr-altay-24 avatar Sep 04 '23 16:09 Tnctr-altay-24

Oh my god, you are a genius. Tell me how to make it snow. Can I try your fm? And I will give what you need tomorrow, because it is midnight where I am now.

1457384613gh avatar Sep 04 '23 16:09 1457384613gh

Thank you my friend. Here it shows 19:30 in the evening. I hope to see you tomorrow. I wish you a good night.

Tnctr-altay-24 avatar Sep 04 '23 16:09 Tnctr-altay-24

I hope to see you tomorrow.

Then you can download it by yourself. https://github.com/1457384613gh/Ventoy/actions/runs/6078716761

1457384613gh avatar Sep 05 '23 00:09 1457384613gh

I hope to see you tomorrow.

Then you can download it by yourself. https://github.com/1457384613gh/Ventoy/actions/runs/6078716761

Thank you very much my friend, I tested the new build, but the command vt_browser_dir hd0.5 ${browser_dir} / did not work, so it does not get the value 0x%lx=${browser_dir} I guess is there something we missed in the command, do you have any ideas?

Tnctr-altay-24 avatar Sep 05 '23 05:09 Tnctr-altay-24

I have still not understood your purpose, yet, namely, what you want to achieve.

What is your goal?

1457384613gh avatar Sep 05 '23 05:09 1457384613gh

vt_browser_dir hd0.5 ${browser_dir} /

vt_browser_dir (hd0,5) $

1457384613gh avatar Sep 05 '23 05:09 1457384613gh

In Ventoy, we can see the disk partitions with the F2 key, or when we press the e key on any partition, we see a command like vt_browser_dir hd0,1 0x012345678 / I bought this command line, I want to use it in another configuration (.cfg) file. It varies in each partition structure up to disk. so, is it possible to give a name to the 0x%lx value and get our command by typing it like this? set browser_dir=0x%lx vt_browser_dir hd0,gpt5 ${browser_dir} /

Tnctr-altay-24 avatar Sep 05 '23 05:09 Tnctr-altay-24

I tried to explain with a picture, I hope I could express what I want to do. I'm sorry if it's causing errors as I'm using translation.

(https://github.com/ventoy/Ventoy/assets/72962883/cb9e5a5e-7f4b-4c13-840b-a88fc4e3cc59)

Tnctr-altay-24 avatar Sep 05 '23 06:09 Tnctr-altay-24

Is it as if we pin a folder to startup menu?

1457384613gh avatar Sep 05 '23 08:09 1457384613gh

"/" is not DIR there; "/" is as a DISK.

Line 194~208

    if (ventoy_get_fs_type(fs->name) >= ventoy_fs_max)
    {
        browser_ssprintf(mbuf, "menuentry \"%s\" --class=vtoydisk {\n"
            "   echo \"unsupported file system type!\" \n"
            "   ventoy_pause\n"
            "}\n",
            title);
    }
    else
    {
        browser_ssprintf(mbuf, "menuentry \"%s\" --class=vtoydisk {\n"
            "  vt_browser_dir %s,%d 0x%lx /\n"
            "}\n",
            title, disk->name, partition->number + 1, (ulong)fs);
    }

1457384613gh avatar Sep 05 '23 09:09 1457384613gh

When added to line 208, F2 browser causes disk corruption, I leave the F2 key working normally, I write the following line to grub.cfg, source ${prefix}/main.cfg in main.cfg vt_browser_dir (hd0,gpt5) 0x12345678 / When I log in to gpt5 with this command, everything works perfectly, but when I insert my memory into a different pc, 0x12345678 value is different, so it does not log into any part of the hdd. so name 0x%lx with a name and eg. I want to run it by typing vt_browser_dir (hd0,gpt*) $browser_dir / .

Tnctr-altay-24 avatar Sep 05 '23 09:09 Tnctr-altay-24

You should use regular expressions. Screenshot_2023-09-05-17-32-22-291_com.android.browser.jpg

1457384613gh avatar Sep 05 '23 09:09 1457384613gh

set browser_dir-> ? %s->g_menu_device 0x%lx->(ulong)g_menu_fs %s/%s->g_menu_path_buf

Is the match correct?

Tnctr-altay-24 avatar Sep 05 '23 09:09 Tnctr-altay-24

I am not the machine, so I don't know. You should try and test.

1457384613gh avatar Sep 05 '23 12:09 1457384613gh

when i solve this problem i will send the project to you for testing.

Tnctr-altay-24 avatar Sep 05 '23 13:09 Tnctr-altay-24

when i solve this problem i will send the project to you for testing.

Thank you. May I know how to snow before you will have finished it?

1457384613gh avatar Sep 05 '23 14:09 1457384613gh

when i solve this problem i will send the project to you for testing.

Thank you. May I know how to snow before you will have finished it?

@a1ive master's Grub2Fm also has this feature. It is made using image files that you will obtain from a gif file. First, type the following command in grub2 fm's init.sh export grub_frame_speed=110; Also, in the theme/slack folder, it is sufficient to write the following expressions in the fm.txt file according to your own filenames.

  • animation { dir_name = Turkish image_format = jpg size_ratio = 1 frame_number = 35 left = 0% width = 100% top = 0% height = 100% }

Tnctr-altay-24 avatar Sep 06 '23 05:09 Tnctr-altay-24

How to draw so much snow?

1457384613gh avatar Sep 06 '23 07:09 1457384613gh